﻿namespace HRM.CORE
{
    using DevExpress.Data;
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraBars.Docking;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.Base;
    using DevExpress.XtraGrid.Views.Grid;
    using Microsoft.VisualBasic;
    using APP.HELPER;
    using Common.Base;
    using Common.Class; using APP.HELPER.Utils.Language; using Security.Security; using Dictionary.ERP;
    using HRM.CORE;
    using HRM.CORE.CLASS;
    using HRM.CORE.REPORT;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms; using Common;
    using Extra.ERP;
    using Common;

    public class xucTimekeeperOverTime : Common.xucBase
    {
        private Bar bar1;
        private BarButtonItem barButtonItem3;
        private BarDockControl barDockControlBottom;
        private BarDockControl barDockControlLeft;
        private BarDockControl barDockControlRight;
        private BarDockControl barDockControlTop;
        private BarManager barManager1;
        private BarEditItem bbeTimeKeeperTableListName;
        private BarEditItem bbeYear;
        private BarButtonItem bbiClose;
        private BarButtonItem bbiExport;
        private BarButtonItem bbiFinish;
        private BarButtonItem bbiInsertHour;
        private BarButtonItem bbiLock;
        private BarButtonItem bbiOpen;
        private BarButtonItem bbiPrint;
        private BarButtonItem bbiReload;
        private BarButtonItem bbiSave;
        private Common.Class.clsAllOption clsAllOption = new Common.Class.clsAllOption();
        private GridColumn colBranchName;
        private GridColumn colDay1;
        private GridColumn colDay10;
        private GridColumn colDay11;
        private GridColumn colDay12;
        private GridColumn colDay13;
        private GridColumn colDay14;
        private GridColumn colDay15;
        private GridColumn colDay16;
        private GridColumn colDay17;
        private GridColumn colDay18;
        private GridColumn colDay19;
        private GridColumn colDay2;
        private GridColumn colDay20;
        private GridColumn colDay21;
        private GridColumn colDay22;
        private GridColumn colDay23;
        private GridColumn colDay24;
        private GridColumn colDay25;
        private GridColumn colDay26;
        private GridColumn colDay27;
        private GridColumn colDay28;
        private GridColumn colDay29;
        private GridColumn colDay3;
        private GridColumn colDay30;
        private GridColumn colDay31;
        private GridColumn colDay4;
        private GridColumn colDay5;
        private GridColumn colDay6;
        private GridColumn colDay7;
        private GridColumn colDay8;
        private GridColumn colDay9;
        private GridColumn colDepartmentName;
        private GridColumn colEmployeeCode;
        private GridColumn colFirstName;
        private GridColumn colGroupName;
        private GridColumn colLastName;
        private GridColumn colOvertimeHoliday;
        private GridColumn colOvertimeNightHoliday;
        private GridColumn colOvertimeNightSaturday;
        private GridColumn colOvertimeNightSaturdayAndSunday;
        private GridColumn colOvertimeNightSunday;
        private GridColumn colOvertimeNightWorkday;
        private GridColumn colOvertimeNightWorkdayAndSaturday;
        private GridColumn colOvertimeSaturday;
        private GridColumn colOvertimeSaturdayAndSunday;
        private GridColumn colOvertimeSunday;
        private GridColumn colOvertimeTotal;
        private GridColumn colOvertimeWorkday;
        private GridColumn colOvertimeWorkdayAndSaturday;
        private IContainer components = null;
        private DockManager dockManager1;
        private DockPanel dockPanel1;
        private ControlContainer dockPanel1_Container;
        public DataTable dt_Timekeeper = new DataTable();
        private FlowLayoutPanel flowLayoutPanel1;
        private FlowLayoutPanel flowLayoutPanel2;
        private FlowLayoutPanel flowLayoutPanel3;
        private GridView gbList;
        private GridControl gcList;
        private GridColumn gridColumn1;
        private AutoHideContainer hideContainerLeft;
        public DevExpress.Utils.ImageCollection imageCollection2;
        private LabelControl lbBranchName;
        private LabelControl lbCompanyName;
        private LabelControl lbDepartmentName;
        private LabelControl lbGroupName;
        private LabelControl lbMessage;
        private LabelControl lbTimeKeeperOverTimeName;
        private string m_Code = MyLogin.Code;
        private string m_CompanyName = "";
        private string m_DataInput = "";
        private System.DateTime m_Date;
        private double m_DayHour = 0.0;
        private int m_EarlyMinute = 0;
        private string m_EmployeeCode = "";
        private double m_Hour = 0.0;
        private bool m_IsEditValueChanged = true;
        private bool m_IsFinish = false;
        private bool m_IsLock = false;
        private bool m_IsSetRowCellValue = true;
        private int m_LateMinute = 0;
        private int m_Level = MyLogin.Level;
        private int m_Month = 0;
        private double m_NightHour = 0.0;
        private string m_OldDataInput = "";
        private double m_OldDayHour = 0.0;
        private double m_OldHour = 0.0;
        private double m_OldNightHour = 0.0;
        private double m_PrivateHour = 0.0;
        private string m_ShiftCode = "";
        private string m_Symbol = "";
        private System.DateTime m_TimeIn;
        private Guid m_TimeKeeperTableListID = Guid.Empty;
        private System.DateTime m_TimeOut;
        private int m_Year = 0;
        private PanelControl panelControl1;
        private PopupContainerControl ppContainerControl = new PopupContainerControl();
        private PictureBox ptFinish;
        private PictureBox ptLock;
        private RepositoryItemCalcEdit repCal;
        private GridView repositoryItemGridLookUpEdit2View;
        private RepositoryItemPopupContainerEdit repPopup;
        private RepositoryItemGridLookUpEdit repTimeKeeperList;
        private RepositoryItemTimeEdit repYear;
        private double x_D1 = 0.0;
        private double x_D10 = 0.0;
        private double x_D11 = 0.0;
        private double x_D12 = 0.0;
        private double x_D13 = 0.0;
        private double x_D14 = 0.0;
        private double x_D15 = 0.0;
        private double x_D16 = 0.0;
        private double x_D17 = 0.0;
        private double x_D18 = 0.0;
        private double x_D19 = 0.0;
        private double x_D2 = 0.0;
        private double x_D20 = 0.0;
        private double x_D21 = 0.0;
        private double x_D22 = 0.0;
        private double x_D23 = 0.0;
        private double x_D24 = 0.0;
        private double x_D25 = 0.0;
        private double x_D26 = 0.0;
        private double x_D27 = 0.0;
        private double x_D28 = 0.0;
        private double x_D29 = 0.0;
        private double x_D3 = 0.0;
        private double x_D30 = 0.0;
        private double x_D31 = 0.0;
        private double x_D4 = 0.0;
        private double x_D5 = 0.0;
        private double x_D6 = 0.0;
        private double x_D7 = 0.0;
        private double x_D8 = 0.0;
        private double x_D9 = 0.0;
        private xucExpandCollapseButton xucExpandCollapseButton1;
        private xucOrganization xucOrganization1;
        private HRM.CORE.xucTimekeepingAdd xucTimekeepingAdd = new HRM.CORE.xucTimekeepingAdd();

        public event ClosedHandler Closed;

        public event TimekeeperTableDeletedHandler TimekeeperTableDeleted;

        public event TimekeeperTableInsertedHandler TimekeeperTableInserted;

        public event UnShiftDataHandler UnShiftData;

        public xucTimekeeperOverTime()
        {
            this.InitializeComponent();
            base.RestoreLayout(this.gbList, this);
            this.Init();
        }

        private void bbeYear_EditValueChanged(object sender, EventArgs e)
        {
            try
            {
                this.m_Year = Convert.ToDateTime(this.bbeYear.EditValue.ToString()).Year;
                this.LoadTimeKeeperTableList();
            }
            catch
            {
            }
        }

        private void bbiClose_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.RaiseClosedHandler();
        }

        private void bbiExport_ItemClick(object sender, ItemClickEventArgs e)
        {
            base._exportView = this.gbList;
            SYS_LOG.Insert("Bảng Chấm C\x00f4ng Tăng Ca", "Xuất");
            base.Export();
        }

        private void bbiFinish_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (!ClsOption.System2.IsQuestion || (XtraMessageBox.Show("Bạn c\x00f3 chắc l\x00e0 muốn thực hiện t\x00e1c vụ n\x00e0y kh\x00f4ng?" + Environment.NewLine + " T\x00e1c vụ n\x00e0y được hiểu l\x00e0 bạn đ\x00e3 ho\x00e0n th\x00e0nh bảng chấm c\x00f4ng của th\x00e1ng n\x00e0y!", "Th\x00f4ng b\x00e1o", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.No))
            {
                HRM_TIMEKEEPER_TABLELIST hrm_timekeeper_tablelist = new HRM_TIMEKEEPER_TABLELIST();
                if (hrm_timekeeper_tablelist.Finish(this.m_TimeKeeperTableListID).ToString() == "OK")
                {
                    this.m_IsLock = true;
                    this.m_IsFinish = true;
                    this.InitInterface();
                }
                else
                {
                    MessageBox.Show("Fail!");
                }
            }
        }

        private void bbiInsertHour_ItemClick(object sender, ItemClickEventArgs e)
        {
            if ((this.m_Month != 0) && (this.m_Year != 0))
            {
                xfmTimekeeperOverTimeInsertHour hour = new xfmTimekeeperOverTimeInsertHour(this.m_Month, this.m_Year);
                hour.UnShiftData += new xfmTimekeeperOverTimeInsertHour.UnShiftDataHandler(this.xfmTimekeeperOverTimeInsertHour_UnShiftData);
                hour.ShowDialog();
            }
            else
            {
                XtraMessageBox.Show("Vui l\x00f2ng chọn th\x00e1ng chấm c\x00f4ng tương ứng!", "Th\x00f4ng b\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Question);
            }
        }

        private void bbiLock_ItemClick(object sender, ItemClickEventArgs e)
        {
            HRM_TIMEKEEPER_TABLELIST hrm_timekeeper_tablelist = new HRM_TIMEKEEPER_TABLELIST();
            if (hrm_timekeeper_tablelist.Lock(this.m_TimeKeeperTableListID).ToString() == "OK")
            {
                this.m_IsLock = true;
                this.InitInterface();
            }
            else
            {
                MessageBox.Show("Fail!");
            }
        }

        private void bbiOpen_ItemClick(object sender, ItemClickEventArgs e)
        {
            HRM_TIMEKEEPER_TABLELIST hrm_timekeeper_tablelist = new HRM_TIMEKEEPER_TABLELIST();
            if (hrm_timekeeper_tablelist.Open(this.m_TimeKeeperTableListID).ToString() == "OK")
            {
                this.m_IsLock = false;
                this.InitInterface();
            }
            else
            {
                MessageBox.Show("Fail!");
            }
        }

        private void bbiPrint_ItemClick(object sender, ItemClickEventArgs e)
        {
            if ((this.m_Month != 0) && (this.m_Year != 0))
            {
                new xfmOptionPrintTimekeeperTable(this.m_Level, this.m_Code, this.m_Month, this.m_Year, 4).ShowDialog();
            }
        }

        private void bbiReload_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.LoadGrid(this.m_Level, this.m_Code);
        }

        private void bbiSave_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (this.SaveData())
            {
                XtraMessageBox.Show("Qu\x00e1 tr\x00ecnh lưu đ\x00e3 ho\x00e0n tất!");
            }
            else
            {
                XtraMessageBox.Show("Lưu thất bại!");
            }
        }

        private bool DataInputIsValid()
        {
            bool flag = false;
            string[] strArray = this.m_DataInput.Split(new char[] { ';' });
            if (strArray.Length <= 2)
            {
                try
                {
                    if (strArray.Length == 1)
                    {
                        if (Information.IsNumeric(strArray[0]) && (Convert.ToDouble(strArray[0]) >= 0.0))
                        {
                            this.m_DayHour = Convert.ToDouble(strArray[0]);
                            this.m_NightHour = 0.0;
                            flag = true;
                        }
                        else if (Information.IsNumeric(strArray[0]) && (Convert.ToDouble(strArray[0]) < 0.0))
                        {
                            this.m_DayHour = 0.0;
                            this.m_NightHour = -Convert.ToDouble(strArray[0]);
                            flag = true;
                        }
                    }
                    else if ((strArray.Length == 2) && (Information.IsNumeric(strArray[0]) && (Convert.ToDouble(strArray[0]) > 0.0)))
                    {
                        this.m_DayHour = Convert.ToDouble(strArray[0]);
                        if (Information.IsNumeric(strArray[1]) && (Convert.ToDouble(strArray[1]) < 0.0))
                        {
                            this.m_NightHour = -Convert.ToDouble(strArray[1]);
                            flag = true;
                        }
                    }
                    this.m_Hour = this.m_DayHour + this.m_NightHour;
                }
                catch
                {
                    flag = false;
                }
                if (flag)
                {
                    if (((this.m_DayHour > 12.0) || (this.m_NightHour > 12.0)) || ((this.m_DayHour + this.m_NightHour) > 12.0))
                    {
                        MessageBox.Show("Kh\x00f4ng tăng ca vượt qu\x00e1 12 tiếng!");
                        return false;
                    }
                    return true;
                }
                MessageBox.Show("Dữ liệu nhập kh\x00f4ng hợp lệ!");
            }
            return false;
        }

        private double[] DataInputSummary(string DataInput)
        {
            string[] strArray = DataInput.Split(new char[] { ';' });
            double[] numArray = new double[] { 0.0, 0.0 };
            if (strArray.Length == 1)
            {
                if (Information.IsNumeric(strArray[0]) && (Convert.ToDouble(strArray[0]) >= 0.0))
                {
                    numArray[0] = Convert.ToDouble(strArray[0]);
                    return numArray;
                }
                if (Information.IsNumeric(strArray[0]) && (Convert.ToDouble(strArray[0]) < 0.0))
                {
                    numArray[1] = -Convert.ToDouble(strArray[0]);
                }
                return numArray;
            }
            if (strArray.Length == 2)
            {
                if (!Information.IsNumeric(strArray[0]) || (Convert.ToDouble(strArray[0]) <= 0.0))
                {
                    return numArray;
                }
                numArray[0] = Convert.ToDouble(strArray[0]);
                if (Information.IsNumeric(strArray[1]) && (Convert.ToDouble(strArray[1]) < 0.0))
                {
                    numArray[1] = -Convert.ToDouble(strArray[1]);
                }
            }
            return numArray;
        }

        private string DayName(int Year, int Month, int Day)
        {
            try
            {
                System.DateTime time = new System.DateTime(Year, Month, Day);
                return (Day.ToString() + " " + time.DayOfWeek.ToString().Substring(0, 3));
            }
            catch
            {
                return Day.ToString();
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void gbList_CellValueChanged(object sender, CellValueChangedEventArgs e)
        {
            if (!this.m_IsEditValueChanged)
            {
                this.m_IsEditValueChanged = true;
            }
            else if ((((((e.Column != this.colOvertimeTotal) && (e.Column != this.colOvertimeWorkday)) && ((e.Column != this.colOvertimeSaturday) && (e.Column != this.colOvertimeWorkdayAndSaturday))) && (((e.Column != this.colOvertimeSunday) && (e.Column != this.colOvertimeSaturdayAndSunday)) && ((e.Column != this.colOvertimeHoliday) && (e.Column != this.colOvertimeNightWorkday)))) && (((e.Column != this.colOvertimeNightSaturday) && (e.Column != this.colOvertimeNightWorkdayAndSaturday)) && ((e.Column != this.colOvertimeNightSunday) && (e.Column != this.colOvertimeNightSaturdayAndSunday)))) && (e.Column != this.colOvertimeNightHoliday))
            {
                this.m_DataInput = e.Value.ToString();
                if (!this.DataInputIsValid())
                {
                    this.gbList.SetRowCellValue(e.RowHandle, e.Column, this.m_OldDataInput);
                }
                this.m_EmployeeCode = this.gbList.GetRowCellValue(e.RowHandle, this.colEmployeeCode).ToString();
                this.m_ShiftCode = "";
                HRM_TIMEKEEPER hrm_timekeeper = new HRM_TIMEKEEPER();
                hrm_timekeeper.GetByShift(this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date);
                this.m_TimeIn = hrm_timekeeper.TimeIn;
                this.m_TimeOut = hrm_timekeeper.TimeOut;
                this.m_Symbol = "";
                this.m_LateMinute = 0;
                this.m_EarlyMinute = 0;
                this.dt_Timekeeper.Rows.Add(new object[] { 
                    this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date, this.m_Symbol, this.m_TimeIn, this.m_TimeOut, this.m_Hour, this.m_DayHour, this.m_NightHour, this.m_PrivateHour, this.m_LateMinute, this.m_EarlyMinute, true, true, 0, 
                    ""
                 });
                this.SaveData();
                if (!this.m_IsSetRowCellValue)
                {
                    this.m_IsSetRowCellValue = true;
                }
                else
                {
                    this.SetRowCellValue(e.RowHandle);
                }
            }
        }

        private void gbList_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
        {
            if (e.RowHandle == -2147483648)
            {
                e.Handled = true;
                e.Painter.DrawObject(e.Info);
                Rectangle bounds = e.Bounds;
                e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(0x3f, 0xa5, 0xa5, 0)), bounds);
                bounds.Height--;
                bounds.Width--;
                e.Graphics.DrawRectangle(Pens.Blue, bounds);
            }
            int rowHandle = e.RowHandle;
            if (rowHandle >= 0)
            {
                rowHandle++;
                e.Info.DisplayText = rowHandle.ToString();
            }
        }

        private void gbList_CustomSummaryCalculate(object sender, CustomSummaryEventArgs e)
        {
            int num = Convert.ToInt32((e.Item as GridSummaryItem).Tag);
            if (e.SummaryProcess == CustomSummaryProcess.Start)
            {
                this.x_D1 = 0.0;
                this.x_D2 = 0.0;
                this.x_D3 = 0.0;
                this.x_D4 = 0.0;
                this.x_D5 = 0.0;
                this.x_D6 = 0.0;
                this.x_D7 = 0.0;
                this.x_D8 = 0.0;
                this.x_D9 = 0.0;
                this.x_D10 = 0.0;
                this.x_D11 = 0.0;
                this.x_D12 = 0.0;
                this.x_D13 = 0.0;
                this.x_D14 = 0.0;
                this.x_D15 = 0.0;
                this.x_D16 = 0.0;
                this.x_D17 = 0.0;
                this.x_D18 = 0.0;
                this.x_D19 = 0.0;
                this.x_D20 = 0.0;
                this.x_D22 = 0.0;
                this.x_D23 = 0.0;
                this.x_D24 = 0.0;
                this.x_D25 = 0.0;
                this.x_D26 = 0.0;
                this.x_D27 = 0.0;
                this.x_D28 = 0.0;
                this.x_D29 = 0.0;
                this.x_D30 = 0.0;
                this.x_D31 = 0.0;
            }
            if (e.SummaryProcess == CustomSummaryProcess.Calculate)
            {
                double[] numArray = new double[2];
                numArray = this.DataInputSummary(e.FieldValue.ToString());
                double num2 = numArray[0];
                double num3 = numArray[1];
                switch (num)
                {
                    case 0:
                        this.x_D1 += num2 + num3;
                        break;

                    case 1:
                        this.x_D2 += num2 + num3;
                        break;

                    case 2:
                        this.x_D3 += num2 + num3;
                        break;

                    case 3:
                        this.x_D4 += num2 + num3;
                        break;

                    case 4:
                        this.x_D5 += num2 + num3;
                        break;

                    case 5:
                        this.x_D6 += num2 + num3;
                        break;

                    case 6:
                        this.x_D7 += num2 + num3;
                        break;

                    case 7:
                        this.x_D8 += num2 + num3;
                        break;

                    case 8:
                        this.x_D9 += num2 + num3;
                        break;

                    case 9:
                        this.x_D10 += num2 + num3;
                        break;

                    case 10:
                        this.x_D11 += num2 + num3;
                        break;

                    case 11:
                        this.x_D12 += num2 + num3;
                        break;

                    case 12:
                        this.x_D13 += num2 + num3;
                        break;

                    case 13:
                        this.x_D14 += num2 + num3;
                        break;

                    case 14:
                        this.x_D15 += num2 + num3;
                        break;

                    case 15:
                        this.x_D16 += num2 + num3;
                        break;

                    case 0x10:
                        this.x_D17 += num2 + num3;
                        break;

                    case 0x11:
                        this.x_D18 += num2 + num3;
                        break;

                    case 0x12:
                        this.x_D19 += num2 + num3;
                        break;

                    case 0x13:
                        this.x_D20 += num2 + num3;
                        break;

                    case 20:
                        this.x_D21 += num2 + num3;
                        break;

                    case 0x15:
                        this.x_D22 += num2 + num3;
                        break;

                    case 0x16:
                        this.x_D23 += num2 + num3;
                        break;

                    case 0x17:
                        this.x_D24 += num2 + num3;
                        break;

                    case 0x18:
                        this.x_D25 += num2 + num3;
                        break;

                    case 0x19:
                        this.x_D26 += num2 + num3;
                        break;

                    case 0x1a:
                        this.x_D27 += num2 + num3;
                        break;

                    case 0x1b:
                        this.x_D28 += num2 + num3;
                        break;

                    case 0x1c:
                        this.x_D29 += num2 + num3;
                        break;

                    case 0x1d:
                        this.x_D30 += num2 + num3;
                        break;

                    case 30:
                        this.x_D31 += num2 + num3;
                        break;
                }
            }
            if (e.SummaryProcess == CustomSummaryProcess.Finalize)
            {
                switch (num)
                {
                    case 0:
                        e.TotalValue = this.x_D1;
                        break;

                    case 1:
                        e.TotalValue = this.x_D2;
                        break;

                    case 2:
                        e.TotalValue = this.x_D3;
                        break;

                    case 3:
                        e.TotalValue = this.x_D4;
                        break;

                    case 4:
                        e.TotalValue = this.x_D5;
                        break;

                    case 5:
                        e.TotalValue = this.x_D6;
                        break;

                    case 6:
                        e.TotalValue = this.x_D7;
                        break;

                    case 7:
                        e.TotalValue = this.x_D8;
                        break;

                    case 8:
                        e.TotalValue = this.x_D9;
                        break;

                    case 9:
                        e.TotalValue = this.x_D10;
                        break;

                    case 10:
                        e.TotalValue = this.x_D11;
                        break;

                    case 11:
                        e.TotalValue = this.x_D12;
                        break;

                    case 12:
                        e.TotalValue = this.x_D13;
                        break;

                    case 13:
                        e.TotalValue = this.x_D14;
                        break;

                    case 14:
                        e.TotalValue = this.x_D15;
                        break;

                    case 15:
                        e.TotalValue = this.x_D16;
                        break;

                    case 0x10:
                        e.TotalValue = this.x_D17;
                        break;

                    case 0x11:
                        e.TotalValue = this.x_D18;
                        break;

                    case 0x12:
                        e.TotalValue = this.x_D19;
                        break;

                    case 0x13:
                        e.TotalValue = this.x_D20;
                        break;

                    case 20:
                        e.TotalValue = this.x_D21;
                        break;

                    case 0x15:
                        e.TotalValue = this.x_D22;
                        break;

                    case 0x16:
                        e.TotalValue = this.x_D23;
                        break;

                    case 0x17:
                        e.TotalValue = this.x_D24;
                        break;

                    case 0x18:
                        e.TotalValue = this.x_D25;
                        break;

                    case 0x19:
                        e.TotalValue = this.x_D26;
                        break;

                    case 0x1a:
                        e.TotalValue = this.x_D27;
                        break;

                    case 0x1b:
                        e.TotalValue = this.x_D28;
                        break;

                    case 0x1c:
                        e.TotalValue = this.x_D29;
                        break;

                    case 0x1d:
                        e.TotalValue = this.x_D30;
                        break;

                    case 30:
                        e.TotalValue = this.x_D31;
                        break;
                }
            }
        }

        private void gbList_FocusedColumnChanged(object sender, FocusedColumnChangedEventArgs e)
        {
            try
            {
                int day = 0;
                switch (e.FocusedColumn.Name)
                {
                    case "colDay1":
                        day = 1;
                        break;

                    case "colDay2":
                        day = 2;
                        break;

                    case "colDay3":
                        day = 3;
                        break;

                    case "colDay4":
                        day = 4;
                        break;

                    case "colDay5":
                        day = 5;
                        break;

                    case "colDay6":
                        day = 6;
                        break;

                    case "colDay7":
                        day = 7;
                        break;

                    case "colDay8":
                        day = 8;
                        break;

                    case "colDay9":
                        day = 9;
                        break;

                    case "colDay10":
                        day = 10;
                        break;

                    case "colDay11":
                        day = 11;
                        break;

                    case "colDay12":
                        day = 12;
                        break;

                    case "colDay13":
                        day = 13;
                        break;

                    case "colDay14":
                        day = 14;
                        break;

                    case "colDay15":
                        day = 15;
                        break;

                    case "colDay16":
                        day = 0x10;
                        break;

                    case "colDay17":
                        day = 0x11;
                        break;

                    case "colDay18":
                        day = 0x12;
                        break;

                    case "colDay19":
                        day = 0x13;
                        break;

                    case "colDay20":
                        day = 20;
                        break;

                    case "colDay21":
                        day = 0x15;
                        break;

                    case "colDay22":
                        day = 0x16;
                        break;

                    case "colDay23":
                        day = 0x17;
                        break;

                    case "colDay24":
                        day = 0x18;
                        break;

                    case "colDay25":
                        day = 0x19;
                        break;

                    case "colDay26":
                        day = 0x1a;
                        break;

                    case "colDay27":
                        day = 0x1b;
                        break;

                    case "colDay28":
                        day = 0x1c;
                        break;

                    case "colDay29":
                        day = 0x1d;
                        break;

                    case "colDay30":
                        day = 30;
                        break;

                    case "colDay31":
                        day = 0x1f;
                        break;
                }
                this.m_Date = new System.DateTime(this.m_Year, this.m_Month, day);
                this.m_OldDataInput = this.gbList.GetFocusedValue().ToString();
                this.OldDataInput();
            }
            catch
            {
            }
        }

        private void gbList_FocusedRowChanged(object sender, FocusedRowChangedEventArgs e)
        {
            try
            {
                this.m_OldDataInput = this.gbList.GetFocusedValue().ToString();
                this.OldDataInput();
            }
            catch
            {
            }
        }

        private void gbList_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                base.DoShowMenu(this.gbList.CalcHitInfo(new Point(e.X, e.Y)), this.gbList, this);
            }
        }

        private void GridViewLock()
        {
            if ((this.m_Month != 0) && (this.m_Year != 0))
            {
                int numberDay = System.DateTime.DaysInMonth(this.m_Year, this.m_Month);
                this.ShowHideColumn(numberDay);
                for (int i = 1; i <= numberDay; i++)
                {
                    this.gbList.Columns[i + 5].OptionsColumn.ReadOnly = true;
                    this.gbList.Columns[i + 5].OptionsColumn.AllowEdit = false;
                    System.DateTime date = new System.DateTime(this.m_Year, this.m_Month, i);
                    clsTimeKeeperOption option = new clsTimeKeeperOption();
                    if (date.DayOfWeek.ToString() == "Monday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.MondayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Tuesday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.TuesdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Wednesday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.WednesdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Thursday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.ThursdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Friday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.FridayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Saturday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.SaturdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Sunday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.SundayColor;
                    }
                    DIC_HOLIDAY dic_holiday = new DIC_HOLIDAY();
                    if (dic_holiday.Exist(date))
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.HolidayColor;
                    }
                    this.gbList.Columns[i + 5].Caption = this.DayName(this.m_Year, this.m_Month, i);
                }
            }
        }

        private void GridViewOpen()
        {
            if ((this.m_Month != 0) && (this.m_Year != 0))
            {
                int numberDay = System.DateTime.DaysInMonth(this.m_Year, this.m_Month);
                this.ShowHideColumn(numberDay);
                for (int i = 1; i <= numberDay; i++)
                {
                    this.gbList.Columns[i + 5].OptionsColumn.ReadOnly = false;
                    this.gbList.Columns[i + 5].OptionsColumn.AllowEdit = true;
                    System.DateTime date = new System.DateTime(this.m_Year, this.m_Month, i);
                    clsTimeKeeperOption option = new clsTimeKeeperOption();
                    if (date.DayOfWeek.ToString() == "Monday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.MondayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Tuesday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.TuesdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Wednesday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.WednesdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Thursday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.ThursdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Friday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.FridayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Saturday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.SaturdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Sunday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.SundayColor;
                    }
                    DIC_HOLIDAY dic_holiday = new DIC_HOLIDAY();
                    if (dic_holiday.Exist(date))
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.HolidayColor;
                    }
                    this.gbList.Columns[i + 5].Caption = this.DayName(this.m_Year, this.m_Month, i);
                }
            }
        }

        private void Init()
        {
            //if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.lbCompanyName.Text = this.m_CompanyName = "";// MyInfo.Company;
            }
            this.lbBranchName.Text = "";
            this.lbDepartmentName.Text = "";
            this.lbGroupName.Text = "";
            this.bbeYear.EditValue = this.clsAllOption.MonthDefault;
            this.m_Year = this.clsAllOption.MonthDefault.Year;
            this.xucOrganization1.LoadData();
            this.xucOrganization1.Selected += delegate (object s, HRM.CORE.Organization o) {
                HRM_GROUP hrm_group = new HRM_GROUP();
                HRM_DEPARTMENT hrm_department = new HRM_DEPARTMENT();
                HRM_BRANCH hrm_branch = new HRM_BRANCH();
                if (o.Level == 0)
                {
                    this.LoadGrid(this.m_Level = 0, this.m_Code = "");
                    this.lbCompanyName.Text = this.m_CompanyName;
                    this.lbBranchName.Text = "";
                    this.lbDepartmentName.Text = "";
                    this.lbGroupName.Text = "";
                }
                else if (o.Level == 1)
                {
                    this.LoadGrid(this.m_Level = 1, this.m_Code = o.BranchCode);
                    hrm_branch.Get(o.BranchCode);
                    this.lbCompanyName.Text = "";
                    this.lbBranchName.Text = hrm_branch.BranchName;
                    this.lbDepartmentName.Text = "";
                    this.lbGroupName.Text = "";
                }
                else if (o.Level == 2)
                {
                    this.LoadGrid(this.m_Level = 2, this.m_Code = o.DepartmentCode);
                    hrm_department.Get(o.DepartmentCode);
                    this.lbCompanyName.Text = "";
                    this.lbBranchName.Text = hrm_department.BranchName;
                    this.lbDepartmentName.Text = hrm_department.DepartmentName;
                    this.lbGroupName.Text = "";
                }
                else if (o.Level == 3)
                {
                    this.LoadGrid(this.m_Level = 3, this.m_Code = o.GroupCode);
                    hrm_group.Get(o.GroupCode);
                    hrm_department.Get(hrm_group.DepartmentCode);
                    this.lbCompanyName.Text = "";
                    this.lbBranchName.Text = hrm_department.BranchName;
                    this.lbDepartmentName.Text = hrm_department.DepartmentName;
                    this.lbGroupName.Text = "/ " + hrm_group.GroupName;
                }
            };
            this.xucOrganization1.Updated += o => this.xucOrganization1.LoadData();
            this.dt_Timekeeper = new HRM_TIMEKEEPER().CreateNullDataTable();
            new HRM_TIMEKEEPER_TABLELIST().AddRepositoryGridLookupEditByYear(this.repTimeKeeperList, this.m_Year);
            this.repTimeKeeperList.ButtonClick += new ButtonPressedEventHandler(this.repTimeKeeperList_ButtonClick);
            this.repPopup.PopupControl = this.ppContainerControl;
            this.ppContainerControl.Width = this.xucTimekeepingAdd.Width;
            this.ppContainerControl.Height = this.xucTimekeepingAdd.Height;
            this.ppContainerControl.Controls.Add(this.xucTimekeepingAdd);
            this.xucTimekeepingAdd.Status = Actions.Update;
            this.xucTimekeepingAdd.CancelClick += s => this.ppContainerControl.OwnerEdit.ClosePopup();
            this.xucTimekeepingAdd.Success += delegate (object s, HRM_TIMEKEEPER i) {
                this.m_IsEditValueChanged = false;
                if ((i.DayHour > 0.0) && (i.NightHour == 0.0))
                {
                    this.gbList.SetFocusedValue(i.DayHour.ToString());
                }
                else if ((i.DayHour == 0.0) && (i.NightHour > 0.0))
                {
                    this.gbList.SetFocusedValue("-" + i.NightHour.ToString());
                }
                else
                {
                    this.gbList.SetFocusedValue(i.DayHour.ToString() + ";-" + i.NightHour.ToString());
                }
                this.SetRowCellValue(this.gbList.FocusedRowHandle);
                try
                {
                    this.ppContainerControl.OwnerEdit.ClosePopup();
                }
                catch
                {
                }
            };
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(xucTimekeeperOverTime));
            SerializableAppearanceObject appearance = new SerializableAppearanceObject();
            MenuButton button = new MenuButton();
            ItemCommand command = new ItemCommand();
            ItemCommand command2 = new ItemCommand();
            ItemCommand command3 = new ItemCommand();
            ItemCommand command4 = new ItemCommand();
            ItemCommand command5 = new ItemCommand();
            ItemCommand command6 = new ItemCommand();
            ItemCommand command7 = new ItemCommand();
            ItemCommand command8 = new ItemCommand();
            ItemCommand command9 = new ItemCommand();
            ItemCommand command10 = new ItemCommand();
            ItemCommand command11 = new ItemCommand();
            ItemCommand command12 = new ItemCommand();
            ItemCommand command13 = new ItemCommand();
            ItemCommand command14 = new ItemCommand();
            ItemCommand command15 = new ItemCommand();
            ItemCommand command16 = new ItemCommand();
            ItemCommand command17 = new ItemCommand();
            ItemCommand command18 = new ItemCommand();
            ItemCommand command19 = new ItemCommand();
            ItemCommand command20 = new ItemCommand();
            ItemCommand command21 = new ItemCommand();
            ItemCommand command22 = new ItemCommand();
            ItemCommand command23 = new ItemCommand();
            ItemCommand command24 = new ItemCommand();
            ItemCommand command25 = new ItemCommand();
            ItemCommand command26 = new ItemCommand();
            ItemCommand command27 = new ItemCommand();
            ItemCommand command28 = new ItemCommand();
            ItemCommand command29 = new ItemCommand();
            StyleFormatCondition condition = new StyleFormatCondition();
            StyleFormatCondition condition2 = new StyleFormatCondition();
            StyleFormatCondition condition3 = new StyleFormatCondition();
            StyleFormatCondition condition4 = new StyleFormatCondition();
            StyleFormatCondition condition5 = new StyleFormatCondition();
            StyleFormatCondition condition6 = new StyleFormatCondition();
            StyleFormatCondition condition7 = new StyleFormatCondition();
            StyleFormatCondition condition8 = new StyleFormatCondition();
            StyleFormatCondition condition9 = new StyleFormatCondition();
            StyleFormatCondition condition10 = new StyleFormatCondition();
            StyleFormatCondition condition11 = new StyleFormatCondition();
            StyleFormatCondition condition12 = new StyleFormatCondition();
            StyleFormatCondition condition13 = new StyleFormatCondition();
            StyleFormatCondition condition14 = new StyleFormatCondition();
            StyleFormatCondition condition15 = new StyleFormatCondition();
            StyleFormatCondition condition16 = new StyleFormatCondition();
            StyleFormatCondition condition17 = new StyleFormatCondition();
            StyleFormatCondition condition18 = new StyleFormatCondition();
            StyleFormatCondition condition19 = new StyleFormatCondition();
            StyleFormatCondition condition20 = new StyleFormatCondition();
            StyleFormatCondition condition21 = new StyleFormatCondition();
            StyleFormatCondition condition22 = new StyleFormatCondition();
            StyleFormatCondition condition23 = new StyleFormatCondition();
            StyleFormatCondition condition24 = new StyleFormatCondition();
            StyleFormatCondition condition25 = new StyleFormatCondition();
            StyleFormatCondition condition26 = new StyleFormatCondition();
            StyleFormatCondition condition27 = new StyleFormatCondition();
            StyleFormatCondition condition28 = new StyleFormatCondition();
            StyleFormatCondition condition29 = new StyleFormatCondition();
            StyleFormatCondition condition30 = new StyleFormatCondition();
            StyleFormatCondition condition31 = new StyleFormatCondition();
            this.colDay1 = new GridColumn();
            this.repPopup = new RepositoryItemPopupContainerEdit();
            this.colDay2 = new GridColumn();
            this.colDay3 = new GridColumn();
            this.colDay4 = new GridColumn();
            this.colDay5 = new GridColumn();
            this.colDay6 = new GridColumn();
            this.colDay7 = new GridColumn();
            this.colDay8 = new GridColumn();
            this.colDay9 = new GridColumn();
            this.colDay10 = new GridColumn();
            this.colDay11 = new GridColumn();
            this.colDay12 = new GridColumn();
            this.colDay13 = new GridColumn();
            this.colDay14 = new GridColumn();
            this.colDay15 = new GridColumn();
            this.colDay16 = new GridColumn();
            this.colDay17 = new GridColumn();
            this.colDay18 = new GridColumn();
            this.colDay19 = new GridColumn();
            this.colDay20 = new GridColumn();
            this.colDay21 = new GridColumn();
            this.colDay22 = new GridColumn();
            this.colDay23 = new GridColumn();
            this.colDay24 = new GridColumn();
            this.colDay25 = new GridColumn();
            this.colDay26 = new GridColumn();
            this.colDay27 = new GridColumn();
            this.colDay28 = new GridColumn();
            this.colDay29 = new GridColumn();
            this.colDay30 = new GridColumn();
            this.colDay31 = new GridColumn();
            this.repCal = new RepositoryItemCalcEdit();
            this.barManager1 = new BarManager(this.components);
            this.bar1 = new Bar();
            this.bbeTimeKeeperTableListName = new BarEditItem();
            this.repTimeKeeperList = new RepositoryItemGridLookUpEdit();
            this.repositoryItemGridLookUpEdit2View = new GridView();
            this.gridColumn1 = new GridColumn();
            this.bbeYear = new BarEditItem();
            this.repYear = new RepositoryItemTimeEdit();
            this.bbiPrint = new BarButtonItem();
            this.bbiSave = new BarButtonItem();
            this.bbiExport = new BarButtonItem();
            this.bbiLock = new BarButtonItem();
            this.bbiOpen = new BarButtonItem();
            this.bbiFinish = new BarButtonItem();
            this.bbiReload = new BarButtonItem();
            this.bbiClose = new BarButtonItem();
            this.barDockControlTop = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft = new BarDockControl();
            this.barDockControlRight = new BarDockControl();
            this.dockManager1 = new DockManager(this.components);
            this.hideContainerLeft = new AutoHideContainer();
            this.dockPanel1 = new DockPanel();
            this.dockPanel1_Container = new ControlContainer();
            this.xucOrganization1 = new xucOrganization();
            this.imageCollection2 = new DevExpress.Utils.ImageCollection(this.components);
            this.barButtonItem3 = new BarButtonItem();
            this.gcList = new GridControl();
            this.gbList = new GridView();
            this.colEmployeeCode = new GridColumn();
            this.colFirstName = new GridColumn();
            this.colLastName = new GridColumn();
            this.colBranchName = new GridColumn();
            this.colDepartmentName = new GridColumn();
            this.colGroupName = new GridColumn();
            this.colOvertimeWorkday = new GridColumn();
            this.colOvertimeSaturday = new GridColumn();
            this.colOvertimeWorkdayAndSaturday = new GridColumn();
            this.colOvertimeSunday = new GridColumn();
            this.colOvertimeSaturdayAndSunday = new GridColumn();
            this.colOvertimeHoliday = new GridColumn();
            this.colOvertimeNightWorkday = new GridColumn();
            this.colOvertimeNightSaturday = new GridColumn();
            this.colOvertimeNightWorkdayAndSaturday = new GridColumn();
            this.colOvertimeNightSunday = new GridColumn();
            this.colOvertimeNightSaturdayAndSunday = new GridColumn();
            this.colOvertimeNightHoliday = new GridColumn();
            this.colOvertimeTotal = new GridColumn();
            this.panelControl1 = new PanelControl();
            this.flowLayoutPanel3 = new FlowLayoutPanel();
            this.xucExpandCollapseButton1 = new xucExpandCollapseButton();
            this.lbGroupName = new LabelControl();
            this.lbDepartmentName = new LabelControl();
            this.flowLayoutPanel2 = new FlowLayoutPanel();
            this.lbBranchName = new LabelControl();
            this.lbCompanyName = new LabelControl();
            this.flowLayoutPanel1 = new FlowLayoutPanel();
            this.lbTimeKeeperOverTimeName = new LabelControl();
            this.ptLock = new PictureBox();
            this.ptFinish = new PictureBox();
            this.lbMessage = new LabelControl();
            this.bbiInsertHour = new BarButtonItem();
            this.repPopup.BeginInit();
            this.repCal.BeginInit();
            this.barManager1.BeginInit();
            this.repTimeKeeperList.BeginInit();
            this.repositoryItemGridLookUpEdit2View.BeginInit();
            this.repYear.BeginInit();
            this.dockManager1.BeginInit();
            this.hideContainerLeft.SuspendLayout();
            this.dockPanel1.SuspendLayout();
            this.dockPanel1_Container.SuspendLayout();
            this.imageCollection2.BeginInit();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            this.panelControl1.BeginInit();
            this.panelControl1.SuspendLayout();
            this.flowLayoutPanel3.SuspendLayout();
            this.flowLayoutPanel2.SuspendLayout();
            this.flowLayoutPanel1.SuspendLayout();
            ((ISupportInitialize) this.ptLock).BeginInit();
            ((ISupportInitialize) this.ptFinish).BeginInit();
            base.SuspendLayout();
            this.colDay1.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay1.AppearanceCell.Options.UseBackColor = true;
            this.colDay1.AppearanceCell.Options.UseTextOptions = true;
            this.colDay1.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay1.Caption = "1";
            this.colDay1.ColumnEdit = this.repPopup;
            this.colDay1.FieldName = "D1";
            this.colDay1.Name = "colDay1";
            this.colDay1.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay1.OptionsColumn.ReadOnly = true;
            this.colDay1.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay1.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay1.Tag = 0;
            this.colDay1.Visible = true;
            this.colDay1.VisibleIndex = 3;
            this.colDay1.Width = 0x23;
            this.repPopup.AutoHeight = false;
            this.repPopup.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repPopup.Name = "repPopup";
            this.repPopup.PopupSizeable = false;
            this.repPopup.TextEditStyle = TextEditStyles.Standard;
            this.repPopup.Popup += new EventHandler(this.repPopup_Popup);
            this.colDay2.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay2.AppearanceCell.Options.UseBackColor = true;
            this.colDay2.AppearanceCell.Options.UseTextOptions = true;
            this.colDay2.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay2.Caption = "2";
            this.colDay2.ColumnEdit = this.repPopup;
            this.colDay2.FieldName = "D2";
            this.colDay2.Name = "colDay2";
            this.colDay2.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay2.OptionsColumn.ReadOnly = true;
            this.colDay2.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay2.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay2.Tag = 1;
            this.colDay2.Visible = true;
            this.colDay2.VisibleIndex = 4;
            this.colDay2.Width = 0x23;
            this.colDay3.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay3.AppearanceCell.Options.UseBackColor = true;
            this.colDay3.AppearanceCell.Options.UseTextOptions = true;
            this.colDay3.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay3.Caption = "3";
            this.colDay3.ColumnEdit = this.repPopup;
            this.colDay3.FieldName = "D3";
            this.colDay3.Name = "colDay3";
            this.colDay3.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay3.OptionsColumn.ReadOnly = true;
            this.colDay3.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay3.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay3.Tag = 2;
            this.colDay3.Visible = true;
            this.colDay3.VisibleIndex = 5;
            this.colDay3.Width = 0x23;
            this.colDay4.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay4.AppearanceCell.Options.UseBackColor = true;
            this.colDay4.AppearanceCell.Options.UseTextOptions = true;
            this.colDay4.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay4.Caption = "4";
            this.colDay4.ColumnEdit = this.repPopup;
            this.colDay4.FieldName = "D4";
            this.colDay4.Name = "colDay4";
            this.colDay4.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay4.OptionsColumn.ReadOnly = true;
            this.colDay4.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay4.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay4.Tag = 3;
            this.colDay4.Visible = true;
            this.colDay4.VisibleIndex = 6;
            this.colDay4.Width = 0x23;
            this.colDay5.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay5.AppearanceCell.Options.UseBackColor = true;
            this.colDay5.AppearanceCell.Options.UseTextOptions = true;
            this.colDay5.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay5.Caption = "5";
            this.colDay5.ColumnEdit = this.repPopup;
            this.colDay5.FieldName = "D5";
            this.colDay5.Name = "colDay5";
            this.colDay5.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay5.OptionsColumn.ReadOnly = true;
            this.colDay5.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay5.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay5.Tag = 4;
            this.colDay5.Visible = true;
            this.colDay5.VisibleIndex = 7;
            this.colDay5.Width = 0x23;
            this.colDay6.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay6.AppearanceCell.Options.UseBackColor = true;
            this.colDay6.AppearanceCell.Options.UseTextOptions = true;
            this.colDay6.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay6.Caption = "6";
            this.colDay6.ColumnEdit = this.repPopup;
            this.colDay6.FieldName = "D6";
            this.colDay6.Name = "colDay6";
            this.colDay6.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay6.OptionsColumn.ReadOnly = true;
            this.colDay6.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay6.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay6.Tag = 5;
            this.colDay6.Visible = true;
            this.colDay6.VisibleIndex = 8;
            this.colDay6.Width = 0x23;
            this.colDay7.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay7.AppearanceCell.Options.UseBackColor = true;
            this.colDay7.AppearanceCell.Options.UseTextOptions = true;
            this.colDay7.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay7.Caption = "7";
            this.colDay7.ColumnEdit = this.repPopup;
            this.colDay7.FieldName = "D7";
            this.colDay7.Name = "colDay7";
            this.colDay7.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay7.OptionsColumn.ReadOnly = true;
            this.colDay7.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay7.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay7.Tag = 6;
            this.colDay7.Visible = true;
            this.colDay7.VisibleIndex = 9;
            this.colDay7.Width = 0x23;
            this.colDay8.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay8.AppearanceCell.Options.UseBackColor = true;
            this.colDay8.AppearanceCell.Options.UseTextOptions = true;
            this.colDay8.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay8.Caption = "8";
            this.colDay8.ColumnEdit = this.repPopup;
            this.colDay8.FieldName = "D8";
            this.colDay8.Name = "colDay8";
            this.colDay8.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay8.OptionsColumn.ReadOnly = true;
            this.colDay8.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay8.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay8.Tag = 7;
            this.colDay8.Visible = true;
            this.colDay8.VisibleIndex = 10;
            this.colDay8.Width = 0x23;
            this.colDay9.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay9.AppearanceCell.Options.UseBackColor = true;
            this.colDay9.AppearanceCell.Options.UseTextOptions = true;
            this.colDay9.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay9.Caption = "9";
            this.colDay9.ColumnEdit = this.repPopup;
            this.colDay9.FieldName = "D9";
            this.colDay9.Name = "colDay9";
            this.colDay9.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay9.OptionsColumn.ReadOnly = true;
            this.colDay9.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay9.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay9.Tag = 8;
            this.colDay9.Visible = true;
            this.colDay9.VisibleIndex = 11;
            this.colDay9.Width = 0x23;
            this.colDay10.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay10.AppearanceCell.Options.UseBackColor = true;
            this.colDay10.AppearanceCell.Options.UseTextOptions = true;
            this.colDay10.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay10.Caption = "10";
            this.colDay10.ColumnEdit = this.repPopup;
            this.colDay10.FieldName = "D10";
            this.colDay10.Name = "colDay10";
            this.colDay10.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay10.OptionsColumn.ReadOnly = true;
            this.colDay10.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay10.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay10.Tag = 9;
            this.colDay10.Visible = true;
            this.colDay10.VisibleIndex = 12;
            this.colDay10.Width = 0x23;
            this.colDay11.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay11.AppearanceCell.Options.UseBackColor = true;
            this.colDay11.AppearanceCell.Options.UseTextOptions = true;
            this.colDay11.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay11.Caption = "11";
            this.colDay11.ColumnEdit = this.repPopup;
            this.colDay11.FieldName = "D11";
            this.colDay11.Name = "colDay11";
            this.colDay11.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay11.OptionsColumn.ReadOnly = true;
            this.colDay11.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay11.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay11.Tag = 10;
            this.colDay11.Visible = true;
            this.colDay11.VisibleIndex = 13;
            this.colDay11.Width = 0x23;
            this.colDay12.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay12.AppearanceCell.Options.UseBackColor = true;
            this.colDay12.AppearanceCell.Options.UseTextOptions = true;
            this.colDay12.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay12.Caption = "12";
            this.colDay12.ColumnEdit = this.repPopup;
            this.colDay12.FieldName = "D12";
            this.colDay12.Name = "colDay12";
            this.colDay12.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay12.OptionsColumn.ReadOnly = true;
            this.colDay12.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay12.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay12.Tag = 11;
            this.colDay12.Visible = true;
            this.colDay12.VisibleIndex = 14;
            this.colDay12.Width = 0x23;
            this.colDay13.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay13.AppearanceCell.Options.UseBackColor = true;
            this.colDay13.AppearanceCell.Options.UseTextOptions = true;
            this.colDay13.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay13.Caption = "13";
            this.colDay13.ColumnEdit = this.repPopup;
            this.colDay13.FieldName = "D13";
            this.colDay13.Name = "colDay13";
            this.colDay13.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay13.OptionsColumn.ReadOnly = true;
            this.colDay13.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay13.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay13.Tag = 12;
            this.colDay13.Visible = true;
            this.colDay13.VisibleIndex = 15;
            this.colDay13.Width = 0x23;
            this.colDay14.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay14.AppearanceCell.Options.UseBackColor = true;
            this.colDay14.AppearanceCell.Options.UseTextOptions = true;
            this.colDay14.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay14.Caption = "14";
            this.colDay14.ColumnEdit = this.repPopup;
            this.colDay14.FieldName = "D14";
            this.colDay14.Name = "colDay14";
            this.colDay14.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay14.OptionsColumn.ReadOnly = true;
            this.colDay14.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay14.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay14.Tag = 13;
            this.colDay14.Visible = true;
            this.colDay14.VisibleIndex = 0x10;
            this.colDay14.Width = 0x23;
            this.colDay15.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay15.AppearanceCell.Options.UseBackColor = true;
            this.colDay15.AppearanceCell.Options.UseTextOptions = true;
            this.colDay15.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay15.Caption = "15";
            this.colDay15.ColumnEdit = this.repPopup;
            this.colDay15.FieldName = "D15";
            this.colDay15.Name = "colDay15";
            this.colDay15.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay15.OptionsColumn.ReadOnly = true;
            this.colDay15.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay15.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay15.Tag = 14;
            this.colDay15.Visible = true;
            this.colDay15.VisibleIndex = 0x11;
            this.colDay15.Width = 0x23;
            this.colDay16.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay16.AppearanceCell.Options.UseBackColor = true;
            this.colDay16.AppearanceCell.Options.UseTextOptions = true;
            this.colDay16.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay16.Caption = "16";
            this.colDay16.ColumnEdit = this.repPopup;
            this.colDay16.FieldName = "D16";
            this.colDay16.Name = "colDay16";
            this.colDay16.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay16.OptionsColumn.ReadOnly = true;
            this.colDay16.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay16.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay16.Tag = 15;
            this.colDay16.Visible = true;
            this.colDay16.VisibleIndex = 0x12;
            this.colDay16.Width = 0x23;
            this.colDay17.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay17.AppearanceCell.Options.UseBackColor = true;
            this.colDay17.AppearanceCell.Options.UseTextOptions = true;
            this.colDay17.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay17.Caption = "17";
            this.colDay17.ColumnEdit = this.repPopup;
            this.colDay17.FieldName = "D17";
            this.colDay17.Name = "colDay17";
            this.colDay17.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay17.OptionsColumn.ReadOnly = true;
            this.colDay17.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay17.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay17.Tag = 0x10;
            this.colDay17.Visible = true;
            this.colDay17.VisibleIndex = 0x13;
            this.colDay17.Width = 0x23;
            this.colDay18.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay18.AppearanceCell.Options.UseBackColor = true;
            this.colDay18.AppearanceCell.Options.UseTextOptions = true;
            this.colDay18.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay18.Caption = "18";
            this.colDay18.ColumnEdit = this.repPopup;
            this.colDay18.FieldName = "D18";
            this.colDay18.Name = "colDay18";
            this.colDay18.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay18.OptionsColumn.ReadOnly = true;
            this.colDay18.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay18.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay18.Tag = 0x11;
            this.colDay18.Visible = true;
            this.colDay18.VisibleIndex = 20;
            this.colDay18.Width = 0x23;
            this.colDay19.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay19.AppearanceCell.Options.UseBackColor = true;
            this.colDay19.AppearanceCell.Options.UseTextOptions = true;
            this.colDay19.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay19.Caption = "19";
            this.colDay19.ColumnEdit = this.repPopup;
            this.colDay19.FieldName = "D19";
            this.colDay19.Name = "colDay19";
            this.colDay19.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay19.OptionsColumn.ReadOnly = true;
            this.colDay19.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay19.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay19.Tag = 0x12;
            this.colDay19.Visible = true;
            this.colDay19.VisibleIndex = 0x15;
            this.colDay19.Width = 0x23;
            this.colDay20.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay20.AppearanceCell.Options.UseBackColor = true;
            this.colDay20.AppearanceCell.Options.UseTextOptions = true;
            this.colDay20.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay20.Caption = "20";
            this.colDay20.ColumnEdit = this.repPopup;
            this.colDay20.FieldName = "D20";
            this.colDay20.Name = "colDay20";
            this.colDay20.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay20.OptionsColumn.ReadOnly = true;
            this.colDay20.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay20.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay20.Tag = 0x13;
            this.colDay20.Visible = true;
            this.colDay20.VisibleIndex = 0x16;
            this.colDay20.Width = 0x23;
            this.colDay21.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay21.AppearanceCell.Options.UseBackColor = true;
            this.colDay21.AppearanceCell.Options.UseTextOptions = true;
            this.colDay21.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay21.Caption = "21";
            this.colDay21.ColumnEdit = this.repPopup;
            this.colDay21.FieldName = "D21";
            this.colDay21.Name = "colDay21";
            this.colDay21.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay21.OptionsColumn.ReadOnly = true;
            this.colDay21.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay21.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay21.Tag = 20;
            this.colDay21.Visible = true;
            this.colDay21.VisibleIndex = 0x17;
            this.colDay21.Width = 0x23;
            this.colDay22.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay22.AppearanceCell.Options.UseBackColor = true;
            this.colDay22.AppearanceCell.Options.UseTextOptions = true;
            this.colDay22.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay22.Caption = "22";
            this.colDay22.ColumnEdit = this.repPopup;
            this.colDay22.FieldName = "D22";
            this.colDay22.Name = "colDay22";
            this.colDay22.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay22.OptionsColumn.ReadOnly = true;
            this.colDay22.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay22.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay22.Tag = 0x15;
            this.colDay22.Visible = true;
            this.colDay22.VisibleIndex = 0x18;
            this.colDay22.Width = 0x23;
            this.colDay23.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay23.AppearanceCell.Options.UseBackColor = true;
            this.colDay23.AppearanceCell.Options.UseTextOptions = true;
            this.colDay23.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay23.Caption = "23";
            this.colDay23.ColumnEdit = this.repPopup;
            this.colDay23.FieldName = "D23";
            this.colDay23.Name = "colDay23";
            this.colDay23.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay23.OptionsColumn.ReadOnly = true;
            this.colDay23.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay23.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay23.Tag = 0x16;
            this.colDay23.Visible = true;
            this.colDay23.VisibleIndex = 0x19;
            this.colDay23.Width = 0x23;
            this.colDay24.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay24.AppearanceCell.Options.UseBackColor = true;
            this.colDay24.AppearanceCell.Options.UseTextOptions = true;
            this.colDay24.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay24.Caption = "24";
            this.colDay24.ColumnEdit = this.repPopup;
            this.colDay24.FieldName = "D24";
            this.colDay24.Name = "colDay24";
            this.colDay24.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay24.OptionsColumn.ReadOnly = true;
            this.colDay24.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay24.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay24.Tag = 0x17;
            this.colDay24.Visible = true;
            this.colDay24.VisibleIndex = 0x1a;
            this.colDay24.Width = 0x23;
            this.colDay25.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay25.AppearanceCell.Options.UseBackColor = true;
            this.colDay25.AppearanceCell.Options.UseTextOptions = true;
            this.colDay25.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay25.Caption = "25";
            this.colDay25.ColumnEdit = this.repPopup;
            this.colDay25.FieldName = "D25";
            this.colDay25.Name = "colDay25";
            this.colDay25.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay25.OptionsColumn.ReadOnly = true;
            this.colDay25.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay25.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay25.Tag = 0x18;
            this.colDay25.Visible = true;
            this.colDay25.VisibleIndex = 0x1b;
            this.colDay25.Width = 0x23;
            this.colDay26.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay26.AppearanceCell.Options.UseBackColor = true;
            this.colDay26.AppearanceCell.Options.UseTextOptions = true;
            this.colDay26.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay26.Caption = "26";
            this.colDay26.ColumnEdit = this.repPopup;
            this.colDay26.FieldName = "D26";
            this.colDay26.Name = "colDay26";
            this.colDay26.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay26.OptionsColumn.ReadOnly = true;
            this.colDay26.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay26.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay26.Tag = 0x19;
            this.colDay26.Visible = true;
            this.colDay26.VisibleIndex = 0x1c;
            this.colDay26.Width = 0x23;
            this.colDay27.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay27.AppearanceCell.Options.UseBackColor = true;
            this.colDay27.AppearanceCell.Options.UseTextOptions = true;
            this.colDay27.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay27.Caption = "27";
            this.colDay27.ColumnEdit = this.repPopup;
            this.colDay27.FieldName = "D27";
            this.colDay27.Name = "colDay27";
            this.colDay27.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay27.OptionsColumn.ReadOnly = true;
            this.colDay27.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay27.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay27.Tag = 0x1a;
            this.colDay27.Visible = true;
            this.colDay27.VisibleIndex = 0x1d;
            this.colDay27.Width = 0x23;
            this.colDay28.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay28.AppearanceCell.Options.UseBackColor = true;
            this.colDay28.AppearanceCell.Options.UseTextOptions = true;
            this.colDay28.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay28.Caption = "28";
            this.colDay28.ColumnEdit = this.repPopup;
            this.colDay28.FieldName = "D28";
            this.colDay28.Name = "colDay28";
            this.colDay28.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay28.OptionsColumn.ReadOnly = true;
            this.colDay28.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay28.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay28.Tag = 0x1b;
            this.colDay28.Visible = true;
            this.colDay28.VisibleIndex = 30;
            this.colDay28.Width = 0x23;
            this.colDay29.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay29.AppearanceCell.Options.UseBackColor = true;
            this.colDay29.AppearanceCell.Options.UseTextOptions = true;
            this.colDay29.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay29.Caption = "29";
            this.colDay29.ColumnEdit = this.repPopup;
            this.colDay29.FieldName = "D29";
            this.colDay29.Name = "colDay29";
            this.colDay29.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay29.OptionsColumn.ReadOnly = true;
            this.colDay29.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay29.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay29.Tag = 0x1c;
            this.colDay29.Visible = true;
            this.colDay29.VisibleIndex = 0x1f;
            this.colDay29.Width = 0x23;
            this.colDay30.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay30.AppearanceCell.Options.UseBackColor = true;
            this.colDay30.AppearanceCell.Options.UseTextOptions = true;
            this.colDay30.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay30.Caption = "30";
            this.colDay30.ColumnEdit = this.repPopup;
            this.colDay30.FieldName = "D30";
            this.colDay30.Name = "colDay30";
            this.colDay30.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay30.OptionsColumn.ReadOnly = true;
            this.colDay30.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay30.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay30.Tag = 0x1d;
            this.colDay30.Visible = true;
            this.colDay30.VisibleIndex = 0x20;
            this.colDay30.Width = 0x23;
            this.colDay31.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay31.AppearanceCell.Options.UseBackColor = true;
            this.colDay31.AppearanceCell.Options.UseTextOptions = true;
            this.colDay31.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay31.Caption = "31";
            this.colDay31.ColumnEdit = this.repPopup;
            this.colDay31.FieldName = "D31";
            this.colDay31.Name = "colDay31";
            this.colDay31.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay31.OptionsColumn.ReadOnly = true;
            this.colDay31.SummaryItem.DisplayFormat = "{0:##,##0.#}";
            this.colDay31.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colDay31.Tag = 30;
            this.colDay31.Visible = true;
            this.colDay31.VisibleIndex = 0x21;
            this.colDay31.Width = 0x23;
            this.repCal.AutoHeight = false;
            this.repCal.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repCal.Name = "repCal";
            this.barManager1.Bars.AddRange(new Bar[] { this.bar1 });
            this.barManager1.DockControls.Add(this.barDockControlTop);
            this.barManager1.DockControls.Add(this.barDockControlBottom);
            this.barManager1.DockControls.Add(this.barDockControlLeft);
            this.barManager1.DockControls.Add(this.barDockControlRight);
            this.barManager1.DockManager = this.dockManager1;
            this.barManager1.Form = this;
            this.barManager1.Images = this.imageCollection2;
            this.barManager1.Items.AddRange(new BarItem[] { this.bbiExport, this.bbiPrint, this.barButtonItem3, this.bbiReload, this.bbiFinish, this.bbeTimeKeeperTableListName, this.bbiClose, this.bbiLock, this.bbiOpen, this.bbeYear, this.bbiSave, this.bbiInsertHour });
            this.barManager1.MaxItemId = 0x13;
            this.barManager1.RepositoryItems.AddRange(new RepositoryItem[] { this.repTimeKeeperList, this.repYear });
            this.bar1.BarName = "Tools";
            this.bar1.DockCol = 0;
            this.bar1.DockRow = 0;
            this.bar1.DockStyle = BarDockStyle.Top;
            this.bar1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeTimeKeeperTableListName, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeYear, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiPrint, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiSave, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiExport, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiLock, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiOpen, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiFinish, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiInsertHour, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiReload, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiClose, BarItemPaintStyle.CaptionGlyph) });
            this.bar1.OptionsBar.UseWholeRow = true;
            this.bar1.Text = "Tools";
            this.bbeTimeKeeperTableListName.Caption = "T\x00ean bảng chấm c\x00f4ng th\x00eam giờ:";
            this.bbeTimeKeeperTableListName.Edit = this.repTimeKeeperList;
            this.bbeTimeKeeperTableListName.Id = 12;
            this.bbeTimeKeeperTableListName.Name = "bbeTimeKeeperTableListName";
            this.bbeTimeKeeperTableListName.Width = 160;
            this.repTimeKeeperList.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repTimeKeeperList.Appearance.Options.UseFont = true;
            this.repTimeKeeperList.AutoHeight = false;
            this.repTimeKeeperList.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton(ButtonPredefines.Glyph, "", -1, true, true, false, ImageLocation.MiddleCenter, (Image) manager.GetObject("repTimeKeeperList.Buttons"), new KeyShortcut(Keys.None), appearance, "", null, null, true) });
            this.repTimeKeeperList.Name = "repTimeKeeperList";
            this.repTimeKeeperList.NullText = "[Chọn bảng chấm c\x00f4ng]";
            this.repTimeKeeperList.View = this.repositoryItemGridLookUpEdit2View;
            this.repTimeKeeperList.EditValueChanging += new ChangingEventHandler(this.repTimeKeeperList_EditValueChanging);
            this.repTimeKeeperList.EditValueChanged += new EventHandler(this.repTimeKeeperList_EditValueChanged);
            this.repositoryItemGridLookUpEdit2View.Columns.AddRange(new GridColumn[] { this.gridColumn1 });
            this.repositoryItemGridLookUpEdit2View.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.repositoryItemGridLookUpEdit2View.Name = "repositoryItemGridLookUpEdit2View";
            this.repositoryItemGridLookUpEdit2View.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.repositoryItemGridLookUpEdit2View.OptionsView.ShowGroupPanel = false;
            this.gridColumn1.Caption = "T\x00ean bảng chấm c\x00f4ng";
            this.gridColumn1.FieldName = "TimeKeeperTableListName";
            this.gridColumn1.Name = "gridColumn1";
            this.gridColumn1.Visible = true;
            this.gridColumn1.VisibleIndex = 0;
            this.bbeYear.Caption = "Lọc theo năm:";
            this.bbeYear.Edit = this.repYear;
            this.bbeYear.Id = 0x10;
            this.bbeYear.Name = "bbeYear";
            this.bbeYear.Width = 60;
            this.bbeYear.EditValueChanged += new EventHandler(this.bbeYear_EditValueChanged);
            this.repYear.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repYear.Appearance.Options.UseFont = true;
            this.repYear.AutoHeight = false;
            this.repYear.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repYear.Mask.EditMask = "yyyy";
            this.repYear.Name = "repYear";
            this.bbiPrint.Caption = "In";
            this.bbiPrint.Id = 7;
            this.bbiPrint.ImageIndex = 9;
            this.bbiPrint.Name = "bbiPrint";
            this.bbiPrint.ItemClick += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiSave.Caption = "Lưu";
            this.bbiSave.Id = 0x11;
            this.bbiSave.ImageIndex = 0x15;
            this.bbiSave.Name = "bbiSave";
            this.bbiSave.Visibility = BarItemVisibility.Never;
            this.bbiSave.ItemClick += new ItemClickEventHandler(this.bbiSave_ItemClick);
            this.bbiExport.Caption = "Xuất";
            this.bbiExport.Id = 4;
            this.bbiExport.ImageIndex = 0x31;
            this.bbiExport.Name = "bbiExport";
            this.bbiExport.ItemClick += new ItemClickEventHandler(this.bbiExport_ItemClick);
            this.bbiLock.Caption = "Kho\x00e1 Sổ";
            this.bbiLock.Enabled = false;
            this.bbiLock.Id = 14;
            this.bbiLock.ImageIndex = 12;
            this.bbiLock.Name = "bbiLock";
            this.bbiLock.ItemClick += new ItemClickEventHandler(this.bbiLock_ItemClick);
            this.bbiOpen.Caption = "Mở Sổ";
            this.bbiOpen.Enabled = false;
            this.bbiOpen.Id = 15;
            this.bbiOpen.ImageIndex = 0x1f;
            this.bbiOpen.Name = "bbiOpen";
            this.bbiOpen.ItemClick += new ItemClickEventHandler(this.bbiOpen_ItemClick);
            this.bbiFinish.Caption = "Ho\x00e0n Th\x00e0nh";
            this.bbiFinish.Enabled = false;
            this.bbiFinish.Id = 10;
            this.bbiFinish.ImageIndex = 0x21;
            this.bbiFinish.Name = "bbiFinish";
            this.bbiFinish.ItemClick += new ItemClickEventHandler(this.bbiFinish_ItemClick);
            this.bbiReload.Caption = "Nạp Lại";
            this.bbiReload.Id = 9;
            this.bbiReload.ImageIndex = 0x2a;
            this.bbiReload.Name = "bbiReload";
            this.bbiReload.ItemClick += new ItemClickEventHandler(this.bbiReload_ItemClick);
            this.bbiClose.Caption = "Đ\x00f3ng";
            this.bbiClose.Id = 13;
            this.bbiClose.ImageIndex = 0x16;
            this.bbiClose.Name = "bbiClose";
            this.bbiClose.ItemClick += new ItemClickEventHandler(this.bbiClose_ItemClick);
            this.dockManager1.AutoHideContainers.AddRange(new AutoHideContainer[] { this.hideContainerLeft });
            this.dockManager1.Form = this;
            this.dockManager1.TopZIndexControls.AddRange(new string[] { "DevExpress.XtraBars.BarDockControl", "DevExpress.XtraBars.StandaloneBarDockControl", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl" });
            this.hideContainerLeft.Controls.Add(this.dockPanel1);
            this.hideContainerLeft.Dock = DockStyle.Left;
            this.hideContainerLeft.Location = new Point(0, 0x1a);
            this.hideContainerLeft.Name = "hideContainerLeft";
            this.hideContainerLeft.Size = new Size(0x13, 600);
            this.dockPanel1.Controls.Add(this.dockPanel1_Container);
            this.dockPanel1.Dock = DockingStyle.Left;
            this.dockPanel1.ID = new Guid("562688f1-5ae7-418e-b080-18d690e64c7d");
            this.dockPanel1.Location = new Point(0, 0);
            this.dockPanel1.Name = "dockPanel1";
            this.dockPanel1.OriginalSize = new Size(280, 200);
            this.dockPanel1.SavedDock = DockingStyle.Left;
            this.dockPanel1.SavedIndex = 1;
            this.dockPanel1.Size = new Size(280, 0x245);
            this.dockPanel1.Text = "Cơ cấu ph\x00f2ng ban";
            this.dockPanel1.Visibility = DockVisibility.AutoHide;
            this.dockPanel1_Container.Controls.Add(this.xucOrganization1);
            this.dockPanel1_Container.Location = new Point(3, 0x19);
            this.dockPanel1_Container.Name = "dockPanel1_Container";
            this.dockPanel1_Container.Size = new Size(0x112, 0x229);
            this.dockPanel1_Container.TabIndex = 0;
            this.xucOrganization1.Dock = DockStyle.Fill;
            this.xucOrganization1.IsClose = CloseOrNew.None;
            this.xucOrganization1.Location = new Point(0, 0);
            this.xucOrganization1.Name = "xucOrganization1";
            this.xucOrganization1.NotSave = false;
            command.Caption = "";
            command.Enable = false;
            command.Visibility = BarItemVisibility.Never;
            button.Add = command;
            command2.Caption = "";
            command2.Enable = false;
            command2.Visibility = BarItemVisibility.Never;
            button.Cancel = command2;
            command3.Caption = "";
            command3.Enable = false;
            command3.Visibility = BarItemVisibility.Never;
            button.Change = command3;
            command4.Caption = "";
            command4.Enable = false;
            command4.Visibility = BarItemVisibility.Never;
            button.Close = command4;
            command5.Caption = "";
            command5.Enable = false;
            command5.Visibility = BarItemVisibility.Never;
            button.Custom = command5;
            command6.Caption = "";
            command6.Enable = false;
            command6.Visibility = BarItemVisibility.Never;
            button.Delete = command6;
            command7.Caption = "";
            command7.Enable = false;
            command7.Visibility = BarItemVisibility.Never;
            button.Export = command7;
            command8.Caption = "";
            command8.Enable = false;
            command8.Visibility = BarItemVisibility.Never;
            button.Filter = command8;
            command9.Caption = "";
            command9.Enable = false;
            command9.Visibility = BarItemVisibility.Never;
            button.FilterCustomer = command9;
            command10.Caption = "";
            command10.Enable = false;
            command10.Visibility = BarItemVisibility.Never;
            button.FilterStock = command10;
            command11.Caption = "";
            command11.Enable = false;
            command11.Visibility = BarItemVisibility.Never;
            button.Find = command11;
            button.GClose = false;
            button.GCommand = false;
            button.GExport = false;
            command12.Caption = "";
            command12.Enable = false;
            command12.Visibility = BarItemVisibility.Never;
            button.Go = command12;
            button.GOption = false;
            button.GPrint = false;
            button.GRecords = false;
            button.GSearchBar = false;
            button.GSettings = false;
            button.GVaildation = false;
            command13.Caption = "";
            command13.Enable = false;
            command13.Visibility = BarItemVisibility.Never;
            button.Import = command13;
            command14.Caption = "";
            command14.Enable = false;
            command14.Visibility = BarItemVisibility.Never;
            button.Next = command14;
            command15.Caption = "";
            command15.Enable = false;
            command15.Visibility = BarItemVisibility.Never;
            button.PageSetup = command15;
            button.PHome = false;
            command16.Caption = "";
            command16.Enable = false;
            command16.Visibility = BarItemVisibility.Never;
            button.Previous = command16;
            command17.Caption = "";
            command17.Enable = false;
            command17.Visibility = BarItemVisibility.Never;
            button.Print = command17;
            command18.Caption = "";
            command18.Enable = false;
            command18.Visibility = BarItemVisibility.Never;
            button.PrintPreview = command18;
            button.PTool = false;
            command19.Caption = "";
            command19.Enable = false;
            command19.Visibility = BarItemVisibility.Never;
            button.Redo = command19;
            command20.Caption = "";
            command20.Enable = false;
            command20.Visibility = BarItemVisibility.Never;
            button.Refresh = command20;
            command21.Caption = "";
            command21.Enable = false;
            command21.Visibility = BarItemVisibility.Never;
            button.Save = command21;
            command22.Caption = "";
            command22.Enable = false;
            command22.Visibility = BarItemVisibility.Never;
            button.SaveAndClose = command22;
            command23.Caption = "";
            command23.Enable = false;
            command23.Visibility = BarItemVisibility.Never;
            button.SaveAndNew = command23;
            command24.Caption = "";
            command24.Enable = false;
            command24.Visibility = BarItemVisibility.Never;
            button.Search = command24;
            command25.Caption = "";
            command25.Enable = false;
            command25.Visibility = BarItemVisibility.Never;
            button.SearchText = command25;
            command26.Caption = "";
            command26.Enable = false;
            command26.Visibility = BarItemVisibility.Never;
            button.Task = command26;
            command27.Caption = "";
            command27.Enable = false;
            command27.Visibility = BarItemVisibility.Never;
            button.Undo = command27;
            command28.Caption = "";
            command28.Enable = false;
            command28.Visibility = BarItemVisibility.Never;
            button.Vaildate = command28;
            command29.Caption = "";
            command29.Enable = false;
            command29.Visibility = BarItemVisibility.Never;
            button.View = command29;
            this.xucOrganization1.RibbonBar = button;
            this.xucOrganization1.Size = new Size(0x112, 0x229);
            this.xucOrganization1.Status = Actions.None;
            this.xucOrganization1.TabIndex = 0;
            this.xucOrganization1.Title = "";
            this.imageCollection2.ImageStream = (ImageCollectionStreamer) manager.GetObject("imageCollection2.ImageStream");
            this.imageCollection2.Images.SetKeyName(0x3d, "Vista (35).ico");
            this.imageCollection2.Images.SetKeyName(0x3e, "Security.ico");
            this.imageCollection2.Images.SetKeyName(0x3f, "RibbonPrintPreview_DocumentMapLarge.png");
            this.imageCollection2.Images.SetKeyName(0x40, "11.png");
            this.imageCollection2.Images.SetKeyName(0x41, "Sua.png");
            this.imageCollection2.Images.SetKeyName(0x42, "Them.png");
            this.imageCollection2.Images.SetKeyName(0x43, "PhanQuyen.png");
            this.imageCollection2.Images.SetKeyName(0x44, "11.png");
            this.imageCollection2.Images.SetKeyName(0x45, "plus.png");
            this.barButtonItem3.Caption = "Lưu";
            this.barButtonItem3.Id = 8;
            this.barButtonItem3.ImageIndex = 10;
            this.barButtonItem3.Name = "barButtonItem3";
            this.gcList.Dock = DockStyle.Fill;
            this.gcList.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gcList.EmbeddedNavigator.TextStringFormat = "{0}/{1}";
            this.gcList.Location = new Point(0x13, 0x49);
            this.gcList.MainView = this.gbList;
            this.gcList.Name = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.repCal, this.repPopup });
            this.gcList.Size = new Size(0x509, 0x229);
            this.gcList.TabIndex = 5;
            this.gcList.UseEmbeddedNavigator = true;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gbList.Appearance.GroupRow.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gbList.Appearance.GroupRow.Options.UseFont = true;
            this.gbList.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.HeaderPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.gbList.Appearance.HeaderPanel.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.ColumnPanelRowHeight = 0x20;
            this.gbList.Columns.AddRange(new GridColumn[] { 
                this.colEmployeeCode, this.colFirstName, this.colLastName, this.colBranchName, this.colDepartmentName, this.colGroupName, this.colDay1, this.colDay2, this.colDay3, this.colDay4, this.colDay5, this.colDay6, this.colDay7, this.colDay8, this.colDay9, this.colDay10, 
                this.colDay11, this.colDay12, this.colDay13, this.colDay14, this.colDay15, this.colDay16, this.colDay17, this.colDay18, this.colDay19, this.colDay20, this.colDay21, this.colDay22, this.colDay23, this.colDay24, this.colDay25, this.colDay26, 
                this.colDay27, this.colDay28, this.colDay29, this.colDay30, this.colDay31, this.colOvertimeWorkday, this.colOvertimeSaturday, this.colOvertimeWorkdayAndSaturday, this.colOvertimeSunday, this.colOvertimeSaturdayAndSunday, this.colOvertimeHoliday, this.colOvertimeNightWorkday, this.colOvertimeNightSaturday, this.colOvertimeNightWorkdayAndSaturday, this.colOvertimeNightSunday, this.colOvertimeNightSaturdayAndSunday, 
                this.colOvertimeNightHoliday, this.colOvertimeTotal
             });
            this.gbList.FixedLineWidth = 1;
            this.gbList.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            condition.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition.Appearance.ForeColor = Color.DarkBlue;
            condition.Appearance.Options.UseFont = true;
            condition.Appearance.Options.UseForeColor = true;
            condition.Column = this.colDay1;
            condition.Condition = FormatConditionEnum.Greater;
            condition.Value1 = "0";
            condition2.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition2.Appearance.ForeColor = Color.DarkBlue;
            condition2.Appearance.Options.UseFont = true;
            condition2.Appearance.Options.UseForeColor = true;
            condition2.Column = this.colDay2;
            condition2.Condition = FormatConditionEnum.Greater;
            condition2.Value1 = "0";
            condition3.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition3.Appearance.ForeColor = Color.DarkBlue;
            condition3.Appearance.Options.UseFont = true;
            condition3.Appearance.Options.UseForeColor = true;
            condition3.Column = this.colDay3;
            condition3.Condition = FormatConditionEnum.Greater;
            condition3.Value1 = "0";
            condition4.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition4.Appearance.ForeColor = Color.DarkBlue;
            condition4.Appearance.Options.UseFont = true;
            condition4.Appearance.Options.UseForeColor = true;
            condition4.Column = this.colDay4;
            condition4.Condition = FormatConditionEnum.Greater;
            condition4.Value1 = "0";
            condition5.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition5.Appearance.ForeColor = Color.DarkBlue;
            condition5.Appearance.Options.UseFont = true;
            condition5.Appearance.Options.UseForeColor = true;
            condition5.Column = this.colDay5;
            condition5.Condition = FormatConditionEnum.Greater;
            condition5.Value1 = "0";
            condition6.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition6.Appearance.ForeColor = Color.DarkBlue;
            condition6.Appearance.Options.UseFont = true;
            condition6.Appearance.Options.UseForeColor = true;
            condition6.Column = this.colDay6;
            condition6.Condition = FormatConditionEnum.Greater;
            condition6.Value1 = "0";
            condition7.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition7.Appearance.ForeColor = Color.DarkBlue;
            condition7.Appearance.Options.UseFont = true;
            condition7.Appearance.Options.UseForeColor = true;
            condition7.Column = this.colDay7;
            condition7.Condition = FormatConditionEnum.Greater;
            condition7.Value1 = "0";
            condition8.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition8.Appearance.ForeColor = Color.DarkBlue;
            condition8.Appearance.Options.UseFont = true;
            condition8.Appearance.Options.UseForeColor = true;
            condition8.Column = this.colDay8;
            condition8.Condition = FormatConditionEnum.Greater;
            condition8.Value1 = "0";
            condition9.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition9.Appearance.ForeColor = Color.DarkBlue;
            condition9.Appearance.Options.UseFont = true;
            condition9.Appearance.Options.UseForeColor = true;
            condition9.Column = this.colDay9;
            condition9.Condition = FormatConditionEnum.Greater;
            condition9.Value1 = "0";
            condition10.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition10.Appearance.ForeColor = Color.DarkBlue;
            condition10.Appearance.Options.UseFont = true;
            condition10.Appearance.Options.UseForeColor = true;
            condition10.Column = this.colDay10;
            condition10.Condition = FormatConditionEnum.Greater;
            condition10.Value1 = "0";
            condition11.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition11.Appearance.ForeColor = Color.DarkBlue;
            condition11.Appearance.Options.UseFont = true;
            condition11.Appearance.Options.UseForeColor = true;
            condition11.Column = this.colDay11;
            condition11.Condition = FormatConditionEnum.Greater;
            condition11.Value1 = "0";
            condition12.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition12.Appearance.ForeColor = Color.DarkBlue;
            condition12.Appearance.Options.UseFont = true;
            condition12.Appearance.Options.UseForeColor = true;
            condition12.Column = this.colDay12;
            condition12.Condition = FormatConditionEnum.Greater;
            condition12.Value1 = "0";
            condition13.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition13.Appearance.ForeColor = Color.DarkBlue;
            condition13.Appearance.Options.UseFont = true;
            condition13.Appearance.Options.UseForeColor = true;
            condition13.Column = this.colDay13;
            condition13.Condition = FormatConditionEnum.Greater;
            condition13.Value1 = "0";
            condition14.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition14.Appearance.ForeColor = Color.DarkBlue;
            condition14.Appearance.Options.UseFont = true;
            condition14.Appearance.Options.UseForeColor = true;
            condition14.Column = this.colDay14;
            condition14.Condition = FormatConditionEnum.Greater;
            condition14.Value1 = "0";
            condition15.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition15.Appearance.ForeColor = Color.DarkBlue;
            condition15.Appearance.Options.UseFont = true;
            condition15.Appearance.Options.UseForeColor = true;
            condition15.Column = this.colDay15;
            condition15.Condition = FormatConditionEnum.Greater;
            condition15.Value1 = "0";
            condition16.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition16.Appearance.ForeColor = Color.DarkBlue;
            condition16.Appearance.Options.UseFont = true;
            condition16.Appearance.Options.UseForeColor = true;
            condition16.Column = this.colDay16;
            condition16.Condition = FormatConditionEnum.Greater;
            condition16.Value1 = "0";
            condition17.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition17.Appearance.ForeColor = Color.DarkBlue;
            condition17.Appearance.Options.UseFont = true;
            condition17.Appearance.Options.UseForeColor = true;
            condition17.Column = this.colDay17;
            condition17.Condition = FormatConditionEnum.Greater;
            condition17.Value1 = "0";
            condition18.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition18.Appearance.ForeColor = Color.DarkBlue;
            condition18.Appearance.Options.UseFont = true;
            condition18.Appearance.Options.UseForeColor = true;
            condition18.Column = this.colDay18;
            condition18.Condition = FormatConditionEnum.Greater;
            condition18.Value1 = "0";
            condition19.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition19.Appearance.ForeColor = Color.DarkBlue;
            condition19.Appearance.Options.UseFont = true;
            condition19.Appearance.Options.UseForeColor = true;
            condition19.Column = this.colDay19;
            condition19.Condition = FormatConditionEnum.Greater;
            condition19.Value1 = "0";
            condition20.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition20.Appearance.ForeColor = Color.DarkBlue;
            condition20.Appearance.Options.UseFont = true;
            condition20.Appearance.Options.UseForeColor = true;
            condition20.Column = this.colDay20;
            condition20.Condition = FormatConditionEnum.Greater;
            condition20.Value1 = "0";
            condition21.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition21.Appearance.ForeColor = Color.DarkBlue;
            condition21.Appearance.Options.UseFont = true;
            condition21.Appearance.Options.UseForeColor = true;
            condition21.Column = this.colDay21;
            condition21.Condition = FormatConditionEnum.Greater;
            condition21.Value1 = "0";
            condition22.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition22.Appearance.ForeColor = Color.DarkBlue;
            condition22.Appearance.Options.UseFont = true;
            condition22.Appearance.Options.UseForeColor = true;
            condition22.Column = this.colDay22;
            condition22.Condition = FormatConditionEnum.Greater;
            condition22.Value1 = "0";
            condition23.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition23.Appearance.ForeColor = Color.DarkBlue;
            condition23.Appearance.Options.UseFont = true;
            condition23.Appearance.Options.UseForeColor = true;
            condition23.Column = this.colDay23;
            condition23.Condition = FormatConditionEnum.Greater;
            condition23.Value1 = "0";
            condition24.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition24.Appearance.ForeColor = Color.DarkBlue;
            condition24.Appearance.Options.UseFont = true;
            condition24.Appearance.Options.UseForeColor = true;
            condition24.Column = this.colDay24;
            condition24.Condition = FormatConditionEnum.Greater;
            condition24.Value1 = "0";
            condition25.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition25.Appearance.ForeColor = Color.DarkBlue;
            condition25.Appearance.Options.UseFont = true;
            condition25.Appearance.Options.UseForeColor = true;
            condition25.Column = this.colDay25;
            condition25.Condition = FormatConditionEnum.Greater;
            condition25.Value1 = "0";
            condition26.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition26.Appearance.ForeColor = Color.DarkBlue;
            condition26.Appearance.Options.UseFont = true;
            condition26.Appearance.Options.UseForeColor = true;
            condition26.Column = this.colDay26;
            condition26.Condition = FormatConditionEnum.Greater;
            condition26.Value1 = "0";
            condition27.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition27.Appearance.ForeColor = Color.DarkBlue;
            condition27.Appearance.Options.UseFont = true;
            condition27.Appearance.Options.UseForeColor = true;
            condition27.Column = this.colDay27;
            condition27.Condition = FormatConditionEnum.Greater;
            condition27.Value1 = "0";
            condition28.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition28.Appearance.ForeColor = Color.DarkBlue;
            condition28.Appearance.Options.UseFont = true;
            condition28.Appearance.Options.UseForeColor = true;
            condition28.Column = this.colDay28;
            condition28.Condition = FormatConditionEnum.Greater;
            condition28.Value1 = "0";
            condition29.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition29.Appearance.ForeColor = Color.DarkBlue;
            condition29.Appearance.Options.UseFont = true;
            condition29.Appearance.Options.UseForeColor = true;
            condition29.Column = this.colDay29;
            condition29.Condition = FormatConditionEnum.Greater;
            condition29.Value1 = "0";
            condition30.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition30.Appearance.ForeColor = Color.DarkBlue;
            condition30.Appearance.Options.UseFont = true;
            condition30.Appearance.Options.UseForeColor = true;
            condition30.Column = this.colDay30;
            condition30.Condition = FormatConditionEnum.Greater;
            condition30.Value1 = "0";
            condition31.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            condition31.Appearance.ForeColor = Color.DarkBlue;
            condition31.Appearance.Options.UseFont = true;
            condition31.Appearance.Options.UseForeColor = true;
            condition31.Column = this.colDay31;
            condition31.Condition = FormatConditionEnum.Greater;
            condition31.Value1 = "0";
            this.gbList.FormatConditions.AddRange(new StyleFormatCondition[] { 
                condition, condition2, condition3, condition4, condition5, condition6, condition7, condition8, condition9, condition10, condition11, condition12, condition13, condition14, condition15, condition16, 
                condition17, condition18, condition19, condition20, condition21, condition22, condition23, condition24, condition25, condition26, condition27, condition28, condition29, condition30, condition31
             });
            this.gbList.GridControl = this.gcList;
            this.gbList.GroupPanelText = "K\x00e9o v\x00e0 Thả cột v\x00e0o đ\x00e2y để nh\x00f3m dữ liệu";
            this.gbList.IndicatorWidth = 40;
            this.gbList.Name = "gbList";
            this.gbList.OptionsBehavior.AllowIncrementalSearch = true;
            this.gbList.OptionsBehavior.AutoExpandAllGroups = true;
            this.gbList.OptionsBehavior.CopyToClipboardWithColumnHeaders = false;
            this.gbList.OptionsBehavior.FocusLeaveOnTab = true;
            this.gbList.OptionsCustomization.AllowFilter = false;
            this.gbList.OptionsFilter.AllowColumnMRUFilterList = false;
            this.gbList.OptionsFilter.AllowFilterEditor = false;
            this.gbList.OptionsFilter.AllowMRUFilterList = false;
            this.gbList.OptionsLayout.StoreAllOptions = true;
            this.gbList.OptionsLayout.StoreAppearance = true;
            this.gbList.OptionsMenu.EnableColumnMenu = false;
            this.gbList.OptionsMenu.EnableGroupPanelMenu = false;
            this.gbList.OptionsNavigation.EnterMoveNextColumn = true;
            this.gbList.OptionsSelection.InvertSelection = true;
            this.gbList.OptionsSelection.MultiSelect = true;
            this.gbList.OptionsView.AllowCellMerge = true;
            this.gbList.OptionsView.ColumnAutoWidth = false;
            this.gbList.OptionsView.ShowAutoFilterRow = true;
            this.gbList.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never;
            this.gbList.OptionsView.ShowFooter = true;
            this.gbList.OptionsView.ShowGroupPanel = false;
            this.gbList.FocusedRowChanged += new FocusedRowChangedEventHandler(this.gbList_FocusedRowChanged);
            this.gbList.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(this.gbList_CustomDrawRowIndicator);
            this.gbList.FocusedColumnChanged += new FocusedColumnChangedEventHandler(this.gbList_FocusedColumnChanged);
            this.gbList.CellValueChanged += new CellValueChangedEventHandler(this.gbList_CellValueChanged);
            this.gbList.MouseDown += new MouseEventHandler(this.gbList_MouseDown);
            this.gbList.CustomSummaryCalculate += new CustomSummaryEventHandler(this.gbList_CustomSummaryCalculate);
            this.colEmployeeCode.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colEmployeeCode.AppearanceHeader.Options.UseFont = true;
            this.colEmployeeCode.Caption = "M\x00e3 nh\x00e2n vi\x00ean";
            this.colEmployeeCode.FieldName = "EmployeeCode";
            this.colEmployeeCode.Fixed = FixedStyle.Left;
            this.colEmployeeCode.Name = "colEmployeeCode";
            this.colEmployeeCode.OptionsColumn.AllowEdit = false;
            this.colEmployeeCode.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colEmployeeCode.OptionsColumn.ReadOnly = true;
            this.colEmployeeCode.Visible = true;
            this.colEmployeeCode.VisibleIndex = 0;
            this.colFirstName.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colFirstName.AppearanceHeader.Options.UseFont = true;
            this.colFirstName.Caption = "Họ l\x00f3t";
            this.colFirstName.FieldName = "FirstName";
            this.colFirstName.Fixed = FixedStyle.Left;
            this.colFirstName.Name = "colFirstName";
            this.colFirstName.OptionsColumn.AllowEdit = false;
            this.colFirstName.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colFirstName.OptionsColumn.ReadOnly = true;
            this.colFirstName.Visible = true;
            this.colFirstName.VisibleIndex = 1;
            this.colFirstName.Width = 110;
            this.colLastName.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colLastName.AppearanceHeader.Options.UseFont = true;
            this.colLastName.Caption = "T\x00ean";
            this.colLastName.FieldName = "LastName";
            this.colLastName.Fixed = FixedStyle.Left;
            this.colLastName.Name = "colLastName";
            this.colLastName.OptionsColumn.AllowEdit = false;
            this.colLastName.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colLastName.OptionsColumn.ReadOnly = true;
            this.colLastName.Visible = true;
            this.colLastName.VisibleIndex = 2;
            this.colLastName.Width = 0x38;
            this.colBranchName.Caption = "Chi nh\x00e1nh";
            this.colBranchName.FieldName = "BranchName";
            this.colBranchName.Fixed = FixedStyle.Left;
            this.colBranchName.Name = "colBranchName";
            this.colBranchName.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colBranchName.OptionsColumn.ReadOnly = true;
            this.colDepartmentName.Caption = "Ph\x00f2ng ban";
            this.colDepartmentName.FieldName = "DepartmentName";
            this.colDepartmentName.Fixed = FixedStyle.Left;
            this.colDepartmentName.Name = "colDepartmentName";
            this.colDepartmentName.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDepartmentName.OptionsColumn.ReadOnly = true;
            this.colGroupName.Caption = "Tổ nh\x00f3m";
            this.colGroupName.FieldName = "GroupName";
            this.colGroupName.Fixed = FixedStyle.Left;
            this.colGroupName.Name = "colGroupName";
            this.colGroupName.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colGroupName.OptionsColumn.ReadOnly = true;
            this.colOvertimeWorkday.AppearanceCell.BackColor = Color.Azure;
            this.colOvertimeWorkday.AppearanceCell.Options.UseBackColor = true;
            this.colOvertimeWorkday.AppearanceHeader.ForeColor = Color.Blue;
            this.colOvertimeWorkday.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertimeWorkday.Caption = "TC. Ng\x00e0y thường (h)";
            this.colOvertimeWorkday.ColumnEdit = this.repCal;
            this.colOvertimeWorkday.FieldName = "OvertimeWorkday";
            this.colOvertimeWorkday.Name = "colOvertimeWorkday";
            this.colOvertimeWorkday.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertimeWorkday.OptionsColumn.ReadOnly = true;
            this.colOvertimeWorkday.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertimeWorkday.Visible = true;
            this.colOvertimeWorkday.VisibleIndex = 0x22;
            this.colOvertimeSaturday.AppearanceCell.BackColor = Color.Azure;
            this.colOvertimeSaturday.AppearanceCell.Options.UseBackColor = true;
            this.colOvertimeSaturday.AppearanceHeader.ForeColor = Color.Blue;
            this.colOvertimeSaturday.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertimeSaturday.Caption = "TC. Thứ bảy (h)";
            this.colOvertimeSaturday.ColumnEdit = this.repCal;
            this.colOvertimeSaturday.FieldName = "OvertimeSaturday";
            this.colOvertimeSaturday.Name = "colOvertimeSaturday";
            this.colOvertimeSaturday.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertimeSaturday.OptionsColumn.ReadOnly = true;
            this.colOvertimeSaturday.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertimeSaturday.Visible = true;
            this.colOvertimeSaturday.VisibleIndex = 0x23;
            this.colOvertimeWorkdayAndSaturday.AppearanceCell.BackColor = Color.Azure;
            this.colOvertimeWorkdayAndSaturday.AppearanceCell.Options.UseBackColor = true;
            this.colOvertimeWorkdayAndSaturday.AppearanceHeader.ForeColor = Color.Blue;
            this.colOvertimeWorkdayAndSaturday.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertimeWorkdayAndSaturday.Caption = "TC. Ng\x00e0y thường (h) *";
            this.colOvertimeWorkdayAndSaturday.ColumnEdit = this.repCal;
            this.colOvertimeWorkdayAndSaturday.FieldName = "OvertimeWorkdayAndSaturday";
            this.colOvertimeWorkdayAndSaturday.Name = "colOvertimeWorkdayAndSaturday";
            this.colOvertimeWorkdayAndSaturday.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertimeWorkdayAndSaturday.OptionsColumn.ReadOnly = true;
            this.colOvertimeWorkdayAndSaturday.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertimeWorkdayAndSaturday.Visible = true;
            this.colOvertimeWorkdayAndSaturday.VisibleIndex = 0x24;
            this.colOvertimeSunday.AppearanceCell.BackColor = Color.Azure;
            this.colOvertimeSunday.AppearanceCell.Options.UseBackColor = true;
            this.colOvertimeSunday.AppearanceHeader.ForeColor = Color.Blue;
            this.colOvertimeSunday.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertimeSunday.Caption = "TC. Chủ nhật (h)";
            this.colOvertimeSunday.ColumnEdit = this.repCal;
            this.colOvertimeSunday.FieldName = "OvertimeSunday";
            this.colOvertimeSunday.Name = "colOvertimeSunday";
            this.colOvertimeSunday.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertimeSunday.OptionsColumn.ReadOnly = true;
            this.colOvertimeSunday.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertimeSunday.Visible = true;
            this.colOvertimeSunday.VisibleIndex = 0x25;
            this.colOvertimeSaturdayAndSunday.AppearanceCell.BackColor = Color.Azure;
            this.colOvertimeSaturdayAndSunday.AppearanceCell.Options.UseBackColor = true;
            this.colOvertimeSaturdayAndSunday.AppearanceHeader.ForeColor = Color.Blue;
            this.colOvertimeSaturdayAndSunday.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertimeSaturdayAndSunday.Caption = "TC. T7 & Chủ nhật (h)";
            this.colOvertimeSaturdayAndSunday.ColumnEdit = this.repCal;
            this.colOvertimeSaturdayAndSunday.FieldName = "OvertimeSaturdayAndSunday";
            this.colOvertimeSaturdayAndSunday.Name = "colOvertimeSaturdayAndSunday";
            this.colOvertimeSaturdayAndSunday.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertimeSaturdayAndSunday.OptionsColumn.ReadOnly = true;
            this.colOvertimeSaturdayAndSunday.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertimeSaturdayAndSunday.Visible = true;
            this.colOvertimeSaturdayAndSunday.VisibleIndex = 0x26;
            this.colOvertimeHoliday.AppearanceCell.BackColor = Color.Azure;
            this.colOvertimeHoliday.AppearanceCell.Options.UseBackColor = true;
            this.colOvertimeHoliday.AppearanceHeader.ForeColor = Color.Blue;
            this.colOvertimeHoliday.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertimeHoliday.Caption = "TC. Ng\x00e0y lễ (h)";
            this.colOvertimeHoliday.ColumnEdit = this.repCal;
            this.colOvertimeHoliday.FieldName = "OvertimeHoliday";
            this.colOvertimeHoliday.Name = "colOvertimeHoliday";
            this.colOvertimeHoliday.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertimeHoliday.OptionsColumn.ReadOnly = true;
            this.colOvertimeHoliday.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertimeHoliday.Visible = true;
            this.colOvertimeHoliday.VisibleIndex = 0x27;
            this.colOvertimeNightWorkday.AppearanceCell.BackColor = Color.Azure;
            this.colOvertimeNightWorkday.AppearanceCell.Options.UseBackColor = true;
            this.colOvertimeNightWorkday.AppearanceHeader.ForeColor = Color.Red;
            this.colOvertimeNightWorkday.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertimeNightWorkday.Caption = "TCĐ. Ng\x00e0y thường (h)";
            this.colOvertimeNightWorkday.ColumnEdit = this.repCal;
            this.colOvertimeNightWorkday.FieldName = "OvertimeNightWorkday";
            this.colOvertimeNightWorkday.Name = "colOvertimeNightWorkday";
            this.colOvertimeNightWorkday.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertimeNightWorkday.OptionsColumn.ReadOnly = true;
            this.colOvertimeNightWorkday.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertimeNightWorkday.Visible = true;
            this.colOvertimeNightWorkday.VisibleIndex = 40;
            this.colOvertimeNightSaturday.AppearanceCell.BackColor = Color.Azure;
            this.colOvertimeNightSaturday.AppearanceCell.Options.UseBackColor = true;
            this.colOvertimeNightSaturday.AppearanceHeader.ForeColor = Color.Red;
            this.colOvertimeNightSaturday.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertimeNightSaturday.Caption = "TCĐ. Thứ bảy (h)";
            this.colOvertimeNightSaturday.ColumnEdit = this.repCal;
            this.colOvertimeNightSaturday.FieldName = "OvertimeNightSaturday";
            this.colOvertimeNightSaturday.Name = "colOvertimeNightSaturday";
            this.colOvertimeNightSaturday.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertimeNightSaturday.OptionsColumn.ReadOnly = true;
            this.colOvertimeNightSaturday.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertimeNightSaturday.Visible = true;
            this.colOvertimeNightSaturday.VisibleIndex = 0x29;
            this.colOvertimeNightWorkdayAndSaturday.AppearanceCell.BackColor = Color.Azure;
            this.colOvertimeNightWorkdayAndSaturday.AppearanceCell.Options.UseBackColor = true;
            this.colOvertimeNightWorkdayAndSaturday.AppearanceHeader.ForeColor = Color.Red;
            this.colOvertimeNightWorkdayAndSaturday.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertimeNightWorkdayAndSaturday.Caption = "TCĐ. Ng\x00e0y thường (h) *";
            this.colOvertimeNightWorkdayAndSaturday.ColumnEdit = this.repCal;
            this.colOvertimeNightWorkdayAndSaturday.FieldName = "OvertimeNightWorkdayAndSaturday";
            this.colOvertimeNightWorkdayAndSaturday.Name = "colOvertimeNightWorkdayAndSaturday";
            this.colOvertimeNightWorkdayAndSaturday.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertimeNightWorkdayAndSaturday.OptionsColumn.ReadOnly = true;
            this.colOvertimeNightWorkdayAndSaturday.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertimeNightWorkdayAndSaturday.Visible = true;
            this.colOvertimeNightWorkdayAndSaturday.VisibleIndex = 0x2a;
            this.colOvertimeNightSunday.AppearanceCell.BackColor = Color.Azure;
            this.colOvertimeNightSunday.AppearanceCell.Options.UseBackColor = true;
            this.colOvertimeNightSunday.AppearanceHeader.ForeColor = Color.Red;
            this.colOvertimeNightSunday.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertimeNightSunday.Caption = "TCĐ. Chủ nhật (h)";
            this.colOvertimeNightSunday.ColumnEdit = this.repCal;
            this.colOvertimeNightSunday.FieldName = "OvertimeNightSunday";
            this.colOvertimeNightSunday.Name = "colOvertimeNightSunday";
            this.colOvertimeNightSunday.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertimeNightSunday.OptionsColumn.ReadOnly = true;
            this.colOvertimeNightSunday.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertimeNightSunday.Visible = true;
            this.colOvertimeNightSunday.VisibleIndex = 0x2b;
            this.colOvertimeNightSaturdayAndSunday.AppearanceCell.BackColor = Color.Azure;
            this.colOvertimeNightSaturdayAndSunday.AppearanceCell.Options.UseBackColor = true;
            this.colOvertimeNightSaturdayAndSunday.AppearanceHeader.ForeColor = Color.Red;
            this.colOvertimeNightSaturdayAndSunday.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertimeNightSaturdayAndSunday.Caption = "TCĐ. T7 & Chủ nhật (h)";
            this.colOvertimeNightSaturdayAndSunday.ColumnEdit = this.repCal;
            this.colOvertimeNightSaturdayAndSunday.FieldName = "OvertimeNightSaturdayAndSunday";
            this.colOvertimeNightSaturdayAndSunday.Name = "colOvertimeNightSaturdayAndSunday";
            this.colOvertimeNightSaturdayAndSunday.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertimeNightSaturdayAndSunday.OptionsColumn.ReadOnly = true;
            this.colOvertimeNightSaturdayAndSunday.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertimeNightSaturdayAndSunday.Visible = true;
            this.colOvertimeNightSaturdayAndSunday.VisibleIndex = 0x2c;
            this.colOvertimeNightHoliday.AppearanceCell.BackColor = Color.Azure;
            this.colOvertimeNightHoliday.AppearanceCell.Options.UseBackColor = true;
            this.colOvertimeNightHoliday.AppearanceHeader.ForeColor = Color.Red;
            this.colOvertimeNightHoliday.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertimeNightHoliday.Caption = "TCĐ. Ng\x00e0y lễ (h)";
            this.colOvertimeNightHoliday.ColumnEdit = this.repCal;
            this.colOvertimeNightHoliday.FieldName = "OvertimeNightHoliday";
            this.colOvertimeNightHoliday.Name = "colOvertimeNightHoliday";
            this.colOvertimeNightHoliday.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertimeNightHoliday.OptionsColumn.ReadOnly = true;
            this.colOvertimeNightHoliday.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertimeNightHoliday.Visible = true;
            this.colOvertimeNightHoliday.VisibleIndex = 0x2d;
            this.colOvertimeTotal.AppearanceCell.BackColor = Color.WhiteSmoke;
            this.colOvertimeTotal.AppearanceCell.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colOvertimeTotal.AppearanceCell.Options.UseBackColor = true;
            this.colOvertimeTotal.AppearanceCell.Options.UseFont = true;
            this.colOvertimeTotal.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colOvertimeTotal.AppearanceHeader.ForeColor = Color.Crimson;
            this.colOvertimeTotal.AppearanceHeader.Options.UseFont = true;
            this.colOvertimeTotal.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertimeTotal.Caption = "Tổng (h)";
            this.colOvertimeTotal.ColumnEdit = this.repCal;
            this.colOvertimeTotal.FieldName = "OvertimeTotal";
            this.colOvertimeTotal.Fixed = FixedStyle.Right;
            this.colOvertimeTotal.Name = "colOvertimeTotal";
            this.colOvertimeTotal.OptionsColumn.AllowEdit = false;
            this.colOvertimeTotal.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertimeTotal.OptionsColumn.ReadOnly = true;
            this.colOvertimeTotal.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colOvertimeTotal.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertimeTotal.Visible = true;
            this.colOvertimeTotal.VisibleIndex = 0x2e;
            this.colOvertimeTotal.Width = 50;
            this.panelControl1.BorderStyle = BorderStyles.NoBorder;
            this.panelControl1.Controls.Add(this.flowLayoutPanel3);
            this.panelControl1.Controls.Add(this.flowLayoutPanel2);
            this.panelControl1.Controls.Add(this.flowLayoutPanel1);
            this.panelControl1.Controls.Add(this.lbMessage);
            this.panelControl1.Dock = DockStyle.Top;
            this.panelControl1.Location = new Point(0x13, 0x1a);
            this.panelControl1.Name = "panelControl1";
            this.panelControl1.Size = new Size(0x509, 0x2f);
            this.panelControl1.TabIndex = 8;
            this.panelControl1.Paint += new PaintEventHandler(this.panelControl1_Paint);
            this.flowLayoutPanel3.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.flowLayoutPanel3.Controls.Add(this.xucExpandCollapseButton1);
            this.flowLayoutPanel3.Controls.Add(this.lbGroupName);
            this.flowLayoutPanel3.Controls.Add(this.lbDepartmentName);
            this.flowLayoutPanel3.FlowDirection = FlowDirection.RightToLeft;
            this.flowLayoutPanel3.Location = new Point(0x34f, 0x16);
            this.flowLayoutPanel3.Name = "flowLayoutPanel3";
            this.flowLayoutPanel3.Size = new Size(0x1b7, 0x15);
            this.flowLayoutPanel3.TabIndex = 8;
            this.xucExpandCollapseButton1.Location = new Point(0x1a3, 3);
            this.xucExpandCollapseButton1.Name = "xucExpandCollapseButton1";
            this.xucExpandCollapseButton1.Size = new Size(0x11, 15);
            this.xucExpandCollapseButton1.TabIndex = 5;
            this.xucExpandCollapseButton1.ExpandCollapsed += new xucExpandCollapseButton.ExpandCollapsedHander(this.xucExpandCollapseButton1_ExpandCollapsed);
            this.lbGroupName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbGroupName.Location = new Point(0x15b, 3);
            this.lbGroupName.Name = "lbGroupName";
            this.lbGroupName.Size = new Size(0x42, 13);
            this.lbGroupName.TabIndex = 4;
            this.lbGroupName.Text = " - GroupName";
            this.lbDepartmentName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbDepartmentName.Location = new Point(0x101, 3);
            this.lbDepartmentName.Name = "lbDepartmentName";
            this.lbDepartmentName.Size = new Size(0x54, 13);
            this.lbDepartmentName.TabIndex = 3;
            this.lbDepartmentName.Text = "DepartmentName";
            this.flowLayoutPanel2.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.flowLayoutPanel2.Controls.Add(this.lbBranchName);
            this.flowLayoutPanel2.Controls.Add(this.lbCompanyName);
            this.flowLayoutPanel2.FlowDirection = FlowDirection.RightToLeft;
            this.flowLayoutPanel2.Location = new Point(0x34f, 1);
            this.flowLayoutPanel2.Name = "flowLayoutPanel2";
            this.flowLayoutPanel2.Size = new Size(0x1b7, 0x12);
            this.flowLayoutPanel2.TabIndex = 7;
            this.lbBranchName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbBranchName.Appearance.Font = new Font("Tahoma", 9f, FontStyle.Bold);
            this.lbBranchName.Appearance.Options.UseFont = true;
            this.lbBranchName.Location = new Point(0x15c, 3);
            this.lbBranchName.Name = "lbBranchName";
            this.lbBranchName.Size = new Size(0x58, 14);
            this.lbBranchName.TabIndex = 2;
            this.lbBranchName.Text = " - BranchName";
            this.lbCompanyName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbCompanyName.Appearance.Font = new Font("Tahoma", 9f, FontStyle.Bold);
            this.lbCompanyName.Appearance.Options.UseFont = true;
            this.lbCompanyName.Location = new Point(0xfc, 3);
            this.lbCompanyName.Name = "lbCompanyName";
            this.lbCompanyName.Size = new Size(90, 14);
            this.lbCompanyName.TabIndex = 1;
            this.lbCompanyName.Text = "CompanyName";
            this.flowLayoutPanel1.Controls.Add(this.lbTimeKeeperOverTimeName);
            this.flowLayoutPanel1.Controls.Add(this.ptLock);
            this.flowLayoutPanel1.Controls.Add(this.ptFinish);
            this.flowLayoutPanel1.Location = new Point(4, 4);
            this.flowLayoutPanel1.Name = "flowLayoutPanel1";
            this.flowLayoutPanel1.Size = new Size(0x165, 0x13);
            this.flowLayoutPanel1.TabIndex = 4;
            this.lbTimeKeeperOverTimeName.Appearance.Font = new Font("Tahoma", 9f, FontStyle.Bold);
            this.lbTimeKeeperOverTimeName.Appearance.Options.UseFont = true;
            this.lbTimeKeeperOverTimeName.Location = new Point(3, 3);
            this.lbTimeKeeperOverTimeName.Name = "lbTimeKeeperOverTimeName";
            this.lbTimeKeeperOverTimeName.Size = new Size(0x10f, 14);
            this.lbTimeKeeperOverTimeName.TabIndex = 0;
            this.lbTimeKeeperOverTimeName.Text = "[Vui l\x00f2ng chọn bảng chấm c\x00f4ng ở ph\x00eda tr\x00ean]";
            this.ptLock.Image = MsgResc.lock_open__1_;
            this.ptLock.Location = new Point(0x119, 0);
            this.ptLock.Margin = new Padding(4, 0, 0, 0);
            this.ptLock.Name = "ptLock";
            this.ptLock.Size = new Size(0x10, 0x10);
            this.ptLock.TabIndex = 10;
            this.ptLock.TabStop = false;
            this.ptLock.Visible = false;
            this.ptFinish.Image = MsgResc.check;
            this.ptFinish.Location = new Point(0x12d, 0);
            this.ptFinish.Margin = new Padding(4, 0, 0, 0);
            this.ptFinish.Name = "ptFinish";
            this.ptFinish.Size = new Size(0x13, 0x10);
            this.ptFinish.TabIndex = 11;
            this.ptFinish.TabStop = false;
            this.ptFinish.Visible = false;
            this.lbMessage.Appearance.ForeColor = Color.DarkBlue;
            this.lbMessage.Appearance.Options.UseForeColor = true;
            this.lbMessage.Location = new Point(4, 0x1c);
            this.lbMessage.Name = "lbMessage";
            this.lbMessage.Size = new Size(0x1e4, 13);
            this.lbMessage.TabIndex = 2;
            this.lbMessage.Text = "[Nếu danh s\x00e1ch l\x00e0 trống bạn c\x00f3 thể nhấn v\x00e0o n\x00fat kế b\x00ean khung chọn để ph\x00e1t sinh dữ liệu chấm c\x00f4ng]";
            this.bbiInsertHour.Caption = "Ch\x00e8n Nhanh";
            this.bbiInsertHour.Id = 0x12;
            this.bbiInsertHour.ImageIndex = 0x41;
            this.bbiInsertHour.Name = "bbiInsertHour";
            this.bbiInsertHour.ItemClick += new ItemClickEventHandler(this.bbiInsertHour_ItemClick);
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.gcList);
            base.Controls.Add(this.panelControl1);
            base.Controls.Add(this.hideContainerLeft);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name = "xucTimekeeperOverTime";
            base.Size = new Size(0x51c, 0x272);
            base.Load += new EventHandler(this.xucTimekeeperOverTime_Load);
            this.repPopup.EndInit();
            this.repCal.EndInit();
            this.barManager1.EndInit();
            this.repTimeKeeperList.EndInit();
            this.repositoryItemGridLookUpEdit2View.EndInit();
            this.repYear.EndInit();
            this.dockManager1.EndInit();
            this.hideContainerLeft.ResumeLayout(false);
            this.dockPanel1.ResumeLayout(false);
            this.dockPanel1_Container.ResumeLayout(false);
            this.imageCollection2.EndInit();
            this.gcList.EndInit();
            this.gbList.EndInit();
            this.panelControl1.EndInit();
            this.panelControl1.ResumeLayout(false);
            this.panelControl1.PerformLayout();
            this.flowLayoutPanel3.ResumeLayout(false);
            this.flowLayoutPanel3.PerformLayout();
            this.flowLayoutPanel2.ResumeLayout(false);
            this.flowLayoutPanel2.PerformLayout();
            this.flowLayoutPanel1.ResumeLayout(false);
            this.flowLayoutPanel1.PerformLayout();
            ((ISupportInitialize) this.ptLock).EndInit();
            ((ISupportInitialize) this.ptFinish).EndInit();
            base.ResumeLayout(false);
        }

        private void InitInterface()
        {
            if (!(this.m_IsLock || this.m_IsFinish))
            {
                this.bbiLock.Enabled = true;
                this.ptLock.Visible = false;
                this.bbiOpen.Enabled = true;
                this.bbiFinish.Enabled = true;
                this.ptFinish.Visible = false;
                this.lbMessage.Text = "Đ\x00e3 mở sổ - Bảng chấm c\x00f4ng được ph\x00e9p chỉnh sửa";
                this.GridViewOpen();
            }
            else if (!(!this.m_IsLock || this.m_IsFinish))
            {
                this.bbiLock.Enabled = false;
                this.ptLock.Visible = true;
                this.bbiOpen.Enabled = true;
                this.bbiFinish.Enabled = true;
                this.ptFinish.Visible = false;
                this.lbMessage.Text = "Đ\x00e3 kho\x00e1 sổ - Kh\x00f4ng được ph\x00e9p chỉnh sửa";
                this.GridViewLock();
            }
            else if (!(this.m_IsLock || !this.m_IsFinish))
            {
                this.bbiLock.Enabled = true;
                this.ptLock.Visible = false;
                this.bbiOpen.Enabled = false;
                this.bbiFinish.Enabled = false;
                this.ptFinish.Visible = true;
                this.lbMessage.Text = "Đ\x00e3 ho\x00e0n th\x00e0nh bảng chấm c\x00f4ng của th\x00e1ng n\x00e0y - Kh\x00f4ng được ph\x00e9p chỉnh sửa";
                this.GridViewLock();
            }
            else if (this.m_IsLock && this.m_IsFinish)
            {
                this.bbiLock.Enabled = false;
                this.ptLock.Visible = true;
                this.bbiOpen.Enabled = false;
                this.bbiFinish.Enabled = false;
                this.ptFinish.Visible = true;
                this.lbMessage.Text = "Đ\x00e3 ho\x00e0n th\x00e0nh bảng chấm c\x00f4ng của th\x00e1ng n\x00e0y - Kh\x00f4ng được ph\x00e9p chỉnh sửa";
                this.GridViewLock();
            }
            HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
            if (hrm_salary_tablelist.Exist(this.m_Month, this.m_Year))
            {
                hrm_salary_tablelist.Get(this.m_Month, this.m_Year);
                if (hrm_salary_tablelist.OvertimeSaturdayType == 0)
                {
                    this.colOvertimeWorkday.Visible = false;
                    this.colOvertimeSaturday.Visible = false;
                    this.colOvertimeWorkdayAndSaturday.Visible = true;
                    this.colOvertimeSunday.Visible = true;
                    this.colOvertimeSaturdayAndSunday.Visible = false;
                    this.colOvertimeHoliday.Visible = true;
                    this.colOvertimeNightWorkday.Visible = false;
                    this.colOvertimeNightSaturday.Visible = false;
                    this.colOvertimeNightWorkdayAndSaturday.Visible = true;
                    this.colOvertimeNightSunday.Visible = true;
                    this.colOvertimeNightSaturdayAndSunday.Visible = false;
                    this.colOvertimeNightHoliday.Visible = true;
                }
                else
                {
                    this.colOvertimeWorkday.Visible = true;
                    this.colOvertimeSaturday.Visible = false;
                    this.colOvertimeWorkdayAndSaturday.Visible = false;
                    this.colOvertimeSunday.Visible = false;
                    this.colOvertimeSaturdayAndSunday.Visible = true;
                    this.colOvertimeHoliday.Visible = true;
                    this.colOvertimeNightWorkday.Visible = true;
                    this.colOvertimeNightSaturday.Visible = false;
                    this.colOvertimeNightWorkdayAndSaturday.Visible = false;
                    this.colOvertimeNightSunday.Visible = false;
                    this.colOvertimeNightSaturdayAndSunday.Visible = true;
                    this.colOvertimeNightHoliday.Visible = true;
                }
            }
            else
            {
                DIC_SALARY_FORMULA dic_salary_formula = new DIC_SALARY_FORMULA();
                dic_salary_formula.Get();
                if (dic_salary_formula.OvertimeSaturdayType == 0)
                {
                    this.colOvertimeWorkday.Visible = false;
                    this.colOvertimeSaturday.Visible = false;
                    this.colOvertimeWorkdayAndSaturday.Visible = true;
                    this.colOvertimeSunday.Visible = true;
                    this.colOvertimeSaturdayAndSunday.Visible = false;
                    this.colOvertimeHoliday.Visible = true;
                    this.colOvertimeNightWorkday.Visible = false;
                    this.colOvertimeNightSaturday.Visible = false;
                    this.colOvertimeNightWorkdayAndSaturday.Visible = true;
                    this.colOvertimeNightSunday.Visible = true;
                    this.colOvertimeNightSaturdayAndSunday.Visible = false;
                    this.colOvertimeNightHoliday.Visible = true;
                }
                else
                {
                    this.colOvertimeWorkday.Visible = true;
                    this.colOvertimeSaturday.Visible = false;
                    this.colOvertimeWorkdayAndSaturday.Visible = false;
                    this.colOvertimeSunday.Visible = false;
                    this.colOvertimeSaturdayAndSunday.Visible = true;
                    this.colOvertimeHoliday.Visible = true;
                    this.colOvertimeNightWorkday.Visible = true;
                    this.colOvertimeNightSaturday.Visible = false;
                    this.colOvertimeNightWorkdayAndSaturday.Visible = false;
                    this.colOvertimeNightSunday.Visible = false;
                    this.colOvertimeNightSaturdayAndSunday.Visible = true;
                    this.colOvertimeNightHoliday.Visible = true;
                }
            }
        }

        private void InitMultiLanguages()
        {
            this.bbeTimeKeeperTableListName.Caption = MultiLanguages.GetString("tbl_TimekeeperOverTime", "TimesheetsName", this.bbeTimeKeeperTableListName.Caption);
            this.bbeYear.Caption = MultiLanguages.GetString("tbl_TimekeeperOverTime", "FilterByYear", this.bbeYear.Caption);
            this.bbiSave.Caption = MultiLanguages.GetString("tbl_TimekeeperOverTime", "Save", this.bbiSave.Caption);
            this.bbiPrint.Caption = MultiLanguages.GetString("tbl_TimekeeperOverTime", "Print", this.bbiPrint.Caption);
            this.bbiExport.Caption = MultiLanguages.GetString("tbl_TimekeeperOverTime", "Export", this.bbiExport.Caption);
            this.bbiReload.Caption = MultiLanguages.GetString("tbl_TimekeeperOverTime", "Refresh", this.bbiReload.Caption);
            this.bbiClose.Caption = MultiLanguages.GetString("tbl_TimekeeperOverTime", "Close", this.bbiClose.Caption);
            this.bbiLock.Caption = MultiLanguages.GetString("tbl_TimekeeperOverTime", "Lock", this.bbiLock.Caption);
            this.bbiOpen.Caption = MultiLanguages.GetString("tbl_TimekeeperOverTime", "Open", this.bbiOpen.Caption);
            this.bbiFinish.Caption = MultiLanguages.GetString("tbl_TimekeeperOverTime", "Finish", this.bbiFinish.Caption);
            this.colEmployeeCode.Caption = MultiLanguages.GetString("tbl_TimekeeperOverTime", "EmployeeCode", this.colEmployeeCode.Caption);
            this.colFirstName.Caption = MultiLanguages.GetString("tbl_TimekeeperOverTime", "FirstName", this.colFirstName.Caption);
            this.colLastName.Caption = MultiLanguages.GetString("tbl_TimekeeperOverTime", "LastName", this.colLastName.Caption);
        }

        public void LoadGrid(int Level, string Code)
        {
            try
            {
                Guid timeKeeperTableListID = this.m_TimeKeeperTableListID;
                this.gcList.DataSource = new HRM_TIMEKEEPER_OVERTIME().GetList(Level, Code, timeKeeperTableListID, true);
            }
            catch
            {
            }
            this.InitInterface();
        }

        public void LoadTimeKeeperTableList()
        {
            new HRM_TIMEKEEPER_TABLELIST().AddRepositoryGridLookupEditByYear(this.repTimeKeeperList, this.m_Year);
            this.LoadGrid(this.m_Level, this.m_Code);
        }

        private void OldDataInput()
        {
            string[] strArray = this.m_OldDataInput.Split(new char[] { ';' });
            if (strArray.Length == 1)
            {
                if (Information.IsNumeric(strArray[0]) && (Convert.ToDouble(strArray[0]) >= 0.0))
                {
                    this.m_OldDayHour = Convert.ToDouble(strArray[0]);
                    this.m_OldNightHour = 0.0;
                }
                else if (Information.IsNumeric(strArray[0]) && (Convert.ToDouble(strArray[0]) < 0.0))
                {
                    this.m_OldDayHour = 0.0;
                    this.m_OldNightHour = -Convert.ToDouble(strArray[0]);
                }
            }
            else if ((strArray.Length == 2) && (Information.IsNumeric(strArray[0]) && (Convert.ToDouble(strArray[0]) > 0.0)))
            {
                this.m_OldDayHour = Convert.ToDouble(strArray[0]);
                if (Information.IsNumeric(strArray[1]) && (Convert.ToDouble(strArray[1]) < 0.0))
                {
                    this.m_OldNightHour = -Convert.ToDouble(strArray[1]);
                }
            }
            this.m_OldHour = this.m_OldDayHour + this.m_OldNightHour;
        }

        private void panelControl1_Paint(object sender, PaintEventArgs e)
        {
        }

        private void RaiseClosedHandler()
        {
            if (this.Closed != null)
            {
                this.Closed(this);
            }
        }

        private void RaiseTimekeeperTableDeletedHander()
        {
            if (this.TimekeeperTableDeleted != null)
            {
                this.TimekeeperTableDeleted(this);
            }
        }

        private void RaiseTimekeeperTableInsertedHander()
        {
            if (this.TimekeeperTableInserted != null)
            {
                this.TimekeeperTableInserted(this);
            }
        }

        private void RaiseUnShiftDataHandler(int Month, int Year)
        {
            if (this.UnShiftData != null)
            {
                this.UnShiftData(this, Month, Year);
            }
        }

        private void repPopup_Popup(object sender, EventArgs e)
        {
            this.m_EmployeeCode = this.gbList.GetFocusedRowCellValue(this.colEmployeeCode).ToString();
            DataTable table = new HRM_TIMEKEEPER().GetListByShift(this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date);
            this.xucTimekeepingAdd.SetData(table);
            this.xucTimekeepingAdd.Status = Actions.Update;
        }

        private void repTimeKeeperList_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            xfmShiftAdd.UnShiftDataHandler handler = null;
            xfmShiftAdd.TimekeeperTableDeletedHandler handler2 = null;
            if (e.Button.Kind == ButtonPredefines.Glyph)
            {
                xfmShiftAdd add = new xfmShiftAdd();
                if (handler == null)
                {
                    handler = (s, m, y) => this.RaiseUnShiftDataHandler(m, y);
                }
                add.UnShiftData += handler;
                if (handler2 == null)
                {
                    handler2 = s => this.RaiseTimekeeperTableDeletedHander();
                }
                add.TimekeeperTableDeleted += handler2;
                add.ShowDialog();
            }
        }

        private void repTimeKeeperList_EditValueChanged(object sender, EventArgs e)
        {
            base.SetWaitDialogCaption("Đang khởi tạo dữ liệu...");
            HRM_TIMEKEEPER_TABLELIST hrm_timekeeper_tablelist = new HRM_TIMEKEEPER_TABLELIST();
            HRM_TIMEKEEPER_OVERTIME hrm_timekeeper_overtime = new HRM_TIMEKEEPER_OVERTIME();
            Guid timeKeeperTableListID = this.m_TimeKeeperTableListID;
            this.gcList.DataSource = hrm_timekeeper_overtime.GetList(this.m_Level, this.m_Code, timeKeeperTableListID, true);
            hrm_timekeeper_tablelist.GetByID(timeKeeperTableListID);
            this.m_Month = hrm_timekeeper_tablelist.Month;
            this.m_Year = hrm_timekeeper_tablelist.Year;
            this.lbTimeKeeperOverTimeName.Text = "Bảng Chấm C\x00f4ng Tăng Ca Th\x00e1ng " + this.m_Month.ToString() + " - " + this.m_Year.ToString();
            this.m_IsLock = hrm_timekeeper_tablelist.IsLock;
            this.m_IsFinish = hrm_timekeeper_tablelist.IsFinish;
            this.InitInterface();
            this.DoHide();
        }

        private void repTimeKeeperList_EditValueChanging(object sender, ChangingEventArgs e)
        {
            this.m_TimeKeeperTableListID = new Guid(e.NewValue.ToString());
        }

        public bool SaveData()
        {
            HRM_TIMEKEEPER hrm_timekeeper = new HRM_TIMEKEEPER();
            foreach (DataRow row in this.dt_Timekeeper.Rows)
            {
                if (hrm_timekeeper.UpdateSymbol(this.m_TimeKeeperTableListID, row["EmployeeCode"].ToString(), row["ShiftCode"].ToString(), Convert.ToDateTime(row["Date"].ToString()), row["Symbol"].ToString(), Convert.ToDateTime(row["TimeIn"].ToString()), Convert.ToDateTime(row["TimeOut"].ToString()), Convert.ToDouble(row["Hour"].ToString()), Convert.ToDouble(row["DayHour"].ToString()), Convert.ToDouble(row["NightHour"].ToString()), Convert.ToDouble(row["PrivateHour"].ToString()), Convert.ToInt32(row["LateMinute"].ToString()), Convert.ToInt32(row["EarlyMinute"].ToString()), Convert.ToBoolean(row["IsOvertime"].ToString()), Convert.ToBoolean(row["IsWork"].ToString()), Convert.ToInt32(row["Sorted"].ToString()), row["Description"].ToString()) != "OK")
                {
                    return false;
                }
            }
            this.dt_Timekeeper.Clear();
            return true;
        }

        private void SetRowCellValue(int RowHandler)
        {
            HRM_TIMEKEEPER_TOTAL hrm_timekeeper_total = new HRM_TIMEKEEPER_TOTAL();
            hrm_timekeeper_total.Get(this.m_TimeKeeperTableListID, this.m_EmployeeCode);
            this.gbList.SetRowCellValue(RowHandler, this.colOvertimeWorkday, hrm_timekeeper_total.OvertimeWorkday);
            this.gbList.SetRowCellValue(RowHandler, this.colOvertimeSaturday, hrm_timekeeper_total.OvertimeSaturday);
            this.gbList.SetRowCellValue(RowHandler, this.colOvertimeWorkdayAndSaturday, hrm_timekeeper_total.OvertimeWorkday + hrm_timekeeper_total.OvertimeSaturday);
            this.gbList.SetRowCellValue(RowHandler, this.colOvertimeSunday, hrm_timekeeper_total.OvertimeSunday);
            this.gbList.SetRowCellValue(RowHandler, this.colOvertimeSaturdayAndSunday, hrm_timekeeper_total.OvertimeSaturday + hrm_timekeeper_total.OvertimeSunday);
            this.gbList.SetRowCellValue(RowHandler, this.colOvertimeHoliday, hrm_timekeeper_total.OvertimeHoliday);
            this.gbList.SetRowCellValue(RowHandler, this.colOvertimeNightWorkday, hrm_timekeeper_total.OvertimeNightWorkday);
            this.gbList.SetRowCellValue(RowHandler, this.colOvertimeNightSaturday, hrm_timekeeper_total.OvertimeNightSaturday);
            this.gbList.SetRowCellValue(RowHandler, this.colOvertimeNightWorkdayAndSaturday, hrm_timekeeper_total.OvertimeNightWorkday + hrm_timekeeper_total.OvertimeNightSaturday);
            this.gbList.SetRowCellValue(RowHandler, this.colOvertimeNightSunday, hrm_timekeeper_total.OvertimeNightSunday);
            this.gbList.SetRowCellValue(RowHandler, this.colOvertimeNightSaturdayAndSunday, hrm_timekeeper_total.OvertimeNightSaturday + hrm_timekeeper_total.OvertimeNightSunday);
            this.gbList.SetRowCellValue(RowHandler, this.colOvertimeNightHoliday, hrm_timekeeper_total.OvertimeNightHoliday);
            this.gbList.SetRowCellValue(RowHandler, this.colOvertimeTotal, hrm_timekeeper_total.OvertimeTotal);
        }

        private void ShowHideColumn(int NumberDay)
        {
            switch (NumberDay)
            {
                case 0x1c:
                    this.colDay28.Visible = true;
                    this.colDay29.Visible = false;
                    this.colDay30.Visible = false;
                    this.colDay31.Visible = false;
                    break;

                case 0x1d:
                    this.colDay28.Visible = true;
                    this.colDay29.Visible = true;
                    this.colDay30.Visible = false;
                    this.colDay31.Visible = false;
                    break;

                case 30:
                    this.colDay28.Visible = true;
                    this.colDay29.Visible = true;
                    this.colDay30.Visible = true;
                    this.colDay31.Visible = false;
                    break;

                case 0x1f:
                    this.colDay28.Visible = true;
                    this.colDay29.Visible = true;
                    this.colDay30.Visible = true;
                    this.colDay31.Visible = true;
                    break;
            }
        }

        private void xfmTimekeeperOverTimeInsertHour_UnShiftData(object sender, double Hour, int FromDate, int ToDate, int FromRow, int ToRow, bool IsCheckAll)
        {
            try
            {
                int num;
                int num2;
                if (IsCheckAll)
                {
                    for (num = FromDate; num <= ToDate; num++)
                    {
                        num2 = 0;
                        while (num2 < this.gbList.RowCount)
                        {
                            if ((num2 % 30) == 0)
                            {
                                base.SetWaitDialogCaption("Đang cập nhật ng\x00e0y " + num.ToString() + " d\x00f2ng.." + num2.ToString());
                            }
                            try
                            {
                                this.m_Date = new System.DateTime(this.m_Year, this.m_Month, num);
                                if (num == ToDate)
                                {
                                    this.m_IsSetRowCellValue = true;
                                }
                                else
                                {
                                    this.m_IsSetRowCellValue = false;
                                }
                                this.gbList.SetRowCellValue(num2, this.gbList.Columns[num + 5], Hour);
                            }
                            catch
                            {
                            }
                            num2++;
                        }
                        this.DoHide();
                    }
                }
                else
                {
                    for (num = FromDate; num <= ToDate; num++)
                    {
                        for (num2 = FromRow - 1; num2 <= (ToRow - 1); num2++)
                        {
                            if ((num2 % 30) == 0)
                            {
                                base.SetWaitDialogCaption("Đang cập nhật ng\x00e0y " + num.ToString() + " d\x00f2ng.." + num2.ToString());
                            }
                            try
                            {
                                this.m_Date = new System.DateTime(this.m_Year, this.m_Month, num);
                                if (num == ToDate)
                                {
                                    this.m_IsSetRowCellValue = true;
                                }
                                else
                                {
                                    this.m_IsSetRowCellValue = false;
                                }
                                this.gbList.SetRowCellValue(num2, this.gbList.Columns[num + 5], Hour);
                            }
                            catch
                            {
                            }
                        }
                        this.DoHide();
                    }
                }
            }
            catch
            {
            }
        }

        private void xucExpandCollapseButton1_ExpandCollapsed(object sender, bool IsExpand)
        {
            if (IsExpand)
            {
                this.gbList.OptionsView.ShowGroupPanel = true;
            }
            else
            {
                this.gbList.OptionsView.ShowGroupPanel = false;
            }
        }

        private void xucTimekeeperOverTime_Load(object sender, EventArgs e)
        {
        }

        public delegate void ClosedHandler(object sender);

        public delegate void TimekeeperTableDeletedHandler(object sender);

        public delegate void TimekeeperTableInsertedHandler(object sender);

        public delegate void UnShiftDataHandler(object sender, int Month, int Year);
    }
}

